diff options
Diffstat (limited to 'video/out/cocoa_cb_common.swift')
-rw-r--r-- | video/out/cocoa_cb_common.swift | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/video/out/cocoa_cb_common.swift b/video/out/cocoa_cb_common.swift index 15f419e207..cf714bfa4d 100644 --- a/video/out/cocoa_cb_common.swift +++ b/video/out/cocoa_cb_common.swift @@ -22,6 +22,7 @@ class CocoaCB: NSObject { var mpv: MPVHelper! var window: Window! + var titleBar: TitleBar! var view: EventsView! var layer: VideoLayer! var link: CVDisplayLink? @@ -101,6 +102,8 @@ class CocoaCB: NSObject { window.title = title window.border = Bool(opts.border) + titleBar = TitleBar(frame: wr, window: window, cocoaCB: self) + window.isRestorable = false window.makeMain() window.makeKeyAndOrderFront(nil) @@ -512,7 +515,7 @@ class CocoaCB: NSObject { } case "macos-title-bar-style": if let data = MPVHelper.mpvStringArrayToString(property.data) { - window.setTitleBarStyle(data) + titleBar.setStyle(data) } default: break |