diff options
Diffstat (limited to 'video')
-rw-r--r-- | video/out/cocoa-cb/window.swift | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/video/out/cocoa-cb/window.swift b/video/out/cocoa-cb/window.swift index ad93a9cebd..ae59f8bb6f 100644 --- a/video/out/cocoa-cb/window.swift +++ b/video/out/cocoa-cb/window.swift @@ -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) } |