summaryrefslogtreecommitdiffstats
path: root/video/out/cocoa/mpvadapter.h
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2015-03-08 11:00:29 +0100
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2015-03-08 11:56:56 +0100
commitce239f1577ccd7eabccaac5b3b34fbe3959d860e (patch)
treed11ba86383c3a6f46ce8c2ae61c9f0c2fcc9ff5c /video/out/cocoa/mpvadapter.h
parent6172e843cd7313ea1c2cef9c75b0ce52449ecedb (diff)
downloadmpv-ce239f1577ccd7eabccaac5b3b34fbe3959d860e.tar.bz2
mpv-ce239f1577ccd7eabccaac5b3b34fbe3959d860e.tar.xz
cocoa: fix mouse hiding with launchpad and dock folders
Some UI elements in OS X – like Launchpad and Dock folders – are implemented using borderless windows in background demonized applications. When we use these elements, mpv doesn't stop to be the active application, but the mpv window leaves keyWindow state while we use the OS controls. This commit just keeps track of window state to update the cursor visibility accordingly. Fixes #513
Diffstat (limited to 'video/out/cocoa/mpvadapter.h')
-rw-r--r--video/out/cocoa/mpvadapter.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/cocoa/mpvadapter.h b/video/out/cocoa/mpvadapter.h
index f54c26593f..c5a0579a96 100644
--- a/video/out/cocoa/mpvadapter.h
+++ b/video/out/cocoa/mpvadapter.h
@@ -28,6 +28,7 @@
- (void)handleFilesArray:(NSArray *)files;
- (void)didChangeWindowedScreenProfile:(NSScreen *)screen;
- (void)performAsyncResize:(NSSize)size;
+- (void)didChangeMousePosition;
- (BOOL)isInFullScreenMode;
- (BOOL)keyboardEnabled;