Skip to content

Create polished demo videos without editing skills. Mac/Windows/Linux

fix(electron): Windows HUD visibility - moveTop after show, reassert mouse state on recording start

webadderallc069eb015e97
diff --git a/electron/main.ts b/electron/main.ts
index 8952cbec..c273daac 100644
--- a/electron/main.ts
+++ b/electron/main.ts
@@ -708,6 +708,9 @@ app.whenReady().then(async () => {
selectedSourceName = sourceName;
if (!tray) createTray();
updateTrayMenu(recording);
+ if (recording) {
+ reassertHudOverlayMouseState();
+ }
if (!recording) {
if (mainWindow) mainWindow.restore();
}
diff --git a/electron/windows.ts b/electron/windows.ts
index c4550b40..1c027ed7 100644
--- a/electron/windows.ts
+++ b/electron/windows.ts
@@ -345,6 +345,15 @@ export function createHudOverlayWindow(): BrowserWindow {
setTimeout(() => {
if (!win.isDestroyed()) {
win.show();
+ win.moveTop();
+ if (process.platform === "win32") {
+ win.setIgnoreMouseEvents(false);
+ setTimeout(() => {
+ if (!win.isDestroyed()) {
+ win.setIgnoreMouseEvents(true, { forward: true });
+ }
+ }, 50);
+ }
}
}, 100);
});