Skip to content

Commit 1d911cc

Browse files
committed
✨ Reinforce HUD always-on-top level
1 parent 0695e92 commit 1d911cc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

electron/window-manager.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ export class WindowManager {
160160
transparent: true,
161161
backgroundColor: '#00000000',
162162
show: false, // Keep hidden initially
163-
alwaysOnTop: true,
164163
hasShadow: false,
165164
resizable: true,
166165
webPreferences: {
@@ -170,6 +169,12 @@ export class WindowManager {
170169
},
171170
});
172171

172+
// Enforce high-level always-on-top (works over fullscreen apps/games on most OS)
173+
this.hudWindow.setAlwaysOnTop(true, 'screen-saver');
174+
175+
// Ensure visibility across virtual desktops (Mac/Win)
176+
this.hudWindow.setVisibleOnAllWorkspaces(true, { visibleOnFullScreen: true });
177+
173178
// Enforce 16:9 aspect ratio natively
174179
this.hudWindow.setAspectRatio(16 / 9);
175180

0 commit comments

Comments
 (0)