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

This commit is contained in:
webadderall
2026-04-02 21:09:32 +11:00
parent 7b1d16d969
commit c9f99ee498
2 changed files with 12 additions and 0 deletions
+3
View File
@@ -708,6 +708,9 @@ app.whenReady().then(async () => {
selectedSourceName = sourceName;
if (!tray) createTray();
updateTrayMenu(recording);
if (recording) {
reassertHudOverlayMouseState();
}
if (!recording) {
if (mainWindow) mainWindow.restore();
}
+9
View File
@@ -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);
});