diff options
Diffstat (limited to 'video/out/mac/window.swift')
-rw-r--r-- | video/out/mac/window.swift | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/video/out/mac/window.swift b/video/out/mac/window.swift index 5b7e77dcff..d692d0db91 100644 --- a/video/out/mac/window.swift +++ b/video/out/mac/window.swift @@ -262,6 +262,8 @@ class Window: NSWindow, NSWindowDelegate { level = .floating case -2: level = .statusBar + 1 + case -3: + level = NSWindow.Level(Int(CGWindowLevelForKey(.desktopWindow))) default: level = NSWindow.Level(ontopLevel) } @@ -416,7 +418,9 @@ class Window: NSWindow, NSWindowDelegate { } override func constrainFrameRect(_ frameRect: NSRect, to tScreen: NSScreen?) -> NSRect { - if (isAnimating && !isInFullscreen) || (!isAnimating && isInFullscreen) { + if (isAnimating && !isInFullscreen) || (!isAnimating && isInFullscreen || + level == NSWindow.Level(Int(CGWindowLevelForKey(.desktopWindow)))) + { return frameRect } |