fix: regression issue with widget display while inactive

This commit is contained in:
nchopra 2025-12-22 18:55:40 +05:30
parent feb31d42ce
commit df07cfac37

View file

@ -157,6 +157,7 @@ export class WindowManager {
});
this.widgetWindow = new BrowserWindow({
show: false,
width,
height,
frame: false,
@ -216,6 +217,12 @@ export class WindowManager {
visibleOnFullScreen: true,
});
this.widgetWindow.setHiddenInMissionControl(true);
} else if (process.platform === "win32") {
// On Windows, explicitly set always-on-top with "screen-saver" level
// for maximum z-order priority. The BrowserWindow option alone uses "floating"
// level which can be obscured by other app toolbars/menus.
// See: https://github.com/electron/electron/issues/11830
this.widgetWindow.setAlwaysOnTop(true, "screen-saver");
}
// Set up display change notifications for all platforms