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); });