summaryrefslogtreecommitdiffstats
path: root/video/out/cocoa/events_view.m
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2015-03-08 15:19:17 +0100
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2015-03-11 12:49:39 +0900
commit46cc45223c66083a8518e4e1a688eda06d6d264c (patch)
treea4902c56c81ab826a33f7fa69321fa8d750208ce /video/out/cocoa/events_view.m
parent0e160123fd57abdee038f67943ba4310502ab7bc (diff)
downloadmpv-46cc45223c66083a8518e4e1a688eda06d6d264c.tar.bz2
mpv-46cc45223c66083a8518e4e1a688eda06d6d264c.tar.xz
cocoa: fix autohide in fullscreen
(cherry picked from commit 8ec9bce2d367541f9d3939f773b669beebd0be6d)
Diffstat (limited to 'video/out/cocoa/events_view.m')
-rw-r--r--video/out/cocoa/events_view.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/cocoa/events_view.m b/video/out/cocoa/events_view.m
index 30fca1a332..42f48bf096 100644
--- a/video/out/cocoa/events_view.m
+++ b/video/out/cocoa/events_view.m
@@ -166,7 +166,8 @@
- (BOOL)canHideCursor
{
- return !self.hasMouseDown && [self containsMouseLocation];
+ return !self.hasMouseDown && [self containsMouseLocation]
+ && [[self window] isKeyWindow];
}
- (void)mouseEntered:(NSEvent *)event