From 0caaa1a37c32fcb61c66d9221395d925a79432c8 Mon Sep 17 00:00:00 2001 From: Akemi Date: Mon, 11 Feb 2019 19:26:04 +0100 Subject: cocoa-cb: notify vo when window is minimised --- video/out/cocoa-cb/window.swift | 8 ++++++++ 1 file changed, 8 insertions(+) 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) } -- cgit v1.2.3