diff options
Diffstat (limited to 'video/out/cocoa_cb_common.swift')
-rw-r--r-- | video/out/cocoa_cb_common.swift | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/video/out/cocoa_cb_common.swift b/video/out/cocoa_cb_common.swift index 476b4820bc..8dd76f4bc5 100644 --- a/video/out/cocoa_cb_common.swift +++ b/video/out/cocoa_cb_common.swift @@ -83,8 +83,7 @@ class CocoaCB: Common { } func updateWindowSize(_ vo: UnsafeMutablePointer<vo>) { - guard let opts: mp_vo_opts = mpv?.opts, - let targetScreen = getScreenBy(id: Int(opts.screen_id)) ?? NSScreen.main else + guard let targetScreen = getTargetScreen(forFullscreen: false) ?? NSScreen.main else { log.sendWarning("Couldn't update Window size, no Screen available") return |