summaryrefslogtreecommitdiffstats
path: root/video/out/cocoa/events_view.m
diff options
context:
space:
mode:
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 7c8283ad72..6fec712a33 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