mirror of https://github.com/mpv-player/mpv
cocoa-cb: notify vo when window is minimised
This commit is contained in:
parent
731804a27e
commit
0caaa1a37c
|
@ -604,6 +604,14 @@ class Window: NSWindow, NSWindowDelegate {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func windowDidMiniaturize(_ notification: Notification) {
|
||||||
|
cocoaCB.flagEvents(VO_EVENT_WIN_STATE)
|
||||||
|
}
|
||||||
|
|
||||||
|
func windowDidDeminiaturize(_ notification: Notification) {
|
||||||
|
cocoaCB.flagEvents(VO_EVENT_WIN_STATE)
|
||||||
|
}
|
||||||
|
|
||||||
func windowDidResignKey(_ notification: Notification) {
|
func windowDidResignKey(_ notification: Notification) {
|
||||||
cocoaCB.setCursorVisiblility(true)
|
cocoaCB.setCursorVisiblility(true)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue