fix: regression issue with widget display while inactive
This commit is contained in:
parent
feb31d42ce
commit
df07cfac37
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue