mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-06-13 15:13:32 -07:00
fix: settings window z-order on Hyprland and Linux app detach (#85)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
type SeparateWindowLike = {
|
||||
isDestroyed(): boolean;
|
||||
};
|
||||
|
||||
function hasLiveSeparateWindow(windows: Array<SeparateWindowLike | null | undefined>): boolean {
|
||||
return windows.some((window) => Boolean(window && !window.isDestroyed()));
|
||||
}
|
||||
|
||||
export function shouldSuppressVisibleOverlayRaiseForSeparateWindow(options: {
|
||||
window: unknown;
|
||||
mainWindow: unknown;
|
||||
separateWindows: Array<SeparateWindowLike | null | undefined>;
|
||||
}): boolean {
|
||||
if (!options.mainWindow || options.window !== options.mainWindow) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return hasLiveSeparateWindow(options.separateWindows);
|
||||
}
|
||||
Reference in New Issue
Block a user