mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-09-24 23:05:49 +00:00
fix(electron): Windows HUD visibility - moveTop after show, reassert mouse state on recording start
This commit is contained in:
@@ -708,6 +708,9 @@ app.whenReady().then(async () => {
|
||||
selectedSourceName = sourceName;
|
||||
if (!tray) createTray();
|
||||
updateTrayMenu(recording);
|
||||
if (recording) {
|
||||
reassertHudOverlayMouseState();
|
||||
}
|
||||
if (!recording) {
|
||||
if (mainWindow) mainWindow.restore();
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user