diff options
Diffstat (limited to 'video/out/cocoa-cb/window.swift')
-rw-r--r-- | video/out/cocoa-cb/window.swift | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/cocoa-cb/window.swift b/video/out/cocoa-cb/window.swift index e413dbfa6d..040cd47751 100644 --- a/video/out/cocoa-cb/window.swift +++ b/video/out/cocoa-cb/window.swift @@ -158,7 +158,7 @@ class Window: NSWindow, NSWindowDelegate { } func showTitleBar() { - if !border && !isInFullscreen { return } + if titleBarEffect == nil || (!border && !isInFullscreen) { return } let loc = cocoaCB.view.convert(mouseLocationOutsideOfEventStream, from: nil) titleButtons.forEach { $0.isHidden = false } @@ -178,6 +178,7 @@ class Window: NSWindow, NSWindowDelegate { } func hideTitleBar() { + if titleBarEffect == nil { return } if isInFullscreen && !isAnimating { titleBarEffect!.alphaValue = 0 return |