cocoa-cb: notify vo when window is minimised

This commit is contained in:
Akemi 2019-02-11 19:26:04 +01:00 committed by Jan Ekström
parent 731804a27e
commit 0caaa1a37c
1 changed files with 8 additions and 0 deletions

View File

@ -604,6 +604,14 @@ class Window: NSWindow, NSWindowDelegate {
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) {
cocoaCB.setCursorVisiblility(true)
}