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

This commit is contained in:
webadderall committed 2026-04-02 21:09:32 +11:00
1 parent 11f70a1592
commit c069eb015e
2 files changed
+12

No files matched your search

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