diff options
author | der richter <der.richter@gmx.de> | 2021-02-23 15:26:39 +0100 |
---|---|---|
committer | der richter <der.richter@gmx.de> | 2021-02-27 13:12:46 +0100 |
commit | d1be8bb6063cc6f7a066b99dd348c34f81cc7f0a (patch) | |
tree | 29ebce562d3bc3e4f87bc6507f47df6c5bf43f85 /video/out/cocoa_cb_common.swift | |
parent | c2868bdd393a82026a9aa50993fef1983f3c8b33 (diff) | |
download | mpv-d1be8bb6063cc6f7a066b99dd348c34f81cc7f0a.tar.bz2 mpv-d1be8bb6063cc6f7a066b99dd348c34f81cc7f0a.tar.xz |
mac: fix traditional fullscreen on macOS 11
the fullscreen style mask is not supported on macOS 11 anymore outside
of the native fullscreen animation. this can lead to a none working fs
or in the worst case a crash.
to fix this we will simulate a fullscreen window with a borderless
window with the size of the whole screen, though only on macOS 11.
Fixes #8490
Diffstat (limited to 'video/out/cocoa_cb_common.swift')
-rw-r--r-- | video/out/cocoa_cb_common.swift | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/cocoa_cb_common.swift b/video/out/cocoa_cb_common.swift index 8dd76f4bc5..dd0738f7e3 100644 --- a/video/out/cocoa_cb_common.swift +++ b/video/out/cocoa_cb_common.swift @@ -132,11 +132,11 @@ class CocoaCB: Common { } override func windowSetToFullScreen() { - layer?.update() + layer?.update(force: true) } override func windowSetToWindow() { - layer?.update() + layer?.update(force: true) } override func windowDidUpdateFrame() { |