1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-13 02:16:40 +00:00

cocoa-cb: report fullscreen state for legacy fullscreen

report the fs screen state when the fullscreen is externally triggered
for the legacy fullscreen.
This commit is contained in:
der richter 2019-12-17 23:48:13 +01:00
parent 2a4d7c4aa8
commit 0b9bc6f180

View File

@ -230,6 +230,7 @@ class Window: NSWindow, NSWindowDelegate {
setFrame(targetFrame, display: true)
endAnimation()
isInFullscreen = true
cocoaCB.mpv?.setConfigProperty(fullscreen: isInFullscreen)
cocoaCB.layer?.update()
}
@ -241,6 +242,7 @@ class Window: NSWindow, NSWindowDelegate {
styleMask.remove(.fullScreen)
endAnimation()
isInFullscreen = false
cocoaCB.mpv?.setConfigProperty(fullscreen: isInFullscreen)
cocoaCB.layer?.update()
}