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:
parent
2a4d7c4aa8
commit
0b9bc6f180
@ -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()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user