summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
Diffstat (limited to 'video')
-rw-r--r--video/out/cocoa-cb/window.swift8
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)
}