mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-06-13 15:13:32 -07:00
fix(overlay): Linux X11/XWayland stacking, stale pause state, multi-copy selector (#101)
This commit is contained in:
@@ -1,9 +1,16 @@
|
||||
type SeparateWindowLike = {
|
||||
isDestroyed(): boolean;
|
||||
isVisible?: () => boolean;
|
||||
};
|
||||
|
||||
function hasLiveSeparateWindow(windows: Array<SeparateWindowLike | null | undefined>): boolean {
|
||||
return windows.some((window) => Boolean(window && !window.isDestroyed()));
|
||||
export function hasLiveSeparateWindow(
|
||||
windows: Array<SeparateWindowLike | null | undefined>,
|
||||
): boolean {
|
||||
return windows.some(
|
||||
(window) =>
|
||||
Boolean(window && !window.isDestroyed()) &&
|
||||
(typeof window?.isVisible !== 'function' || window.isVisible()),
|
||||
);
|
||||
}
|
||||
|
||||
export function shouldSuppressVisibleOverlayRaiseForSeparateWindow(options: {
|
||||
|
||||
Reference in New Issue
Block a user