From c9f99ee498d8f0e78059f322c46df8074f34013a Mon Sep 17 00:00:00 2001 From: webadderall <131426131+webadderall@users.noreply.github.com> Date: Thu, 2 Apr 2026 21:09:32 +1100 Subject: [PATCH] fix(electron): Windows HUD visibility - moveTop after show, reassert mouse state on recording start --- electron/main.ts | 3 +++ electron/windows.ts | 9 +++++++++ 2 files changed, 12 insertions(+) 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); });