summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorAkemi <der.richter@gmx.de>2017-02-19 03:05:34 +0100
committerAkemi <der.richter@gmx.de>2017-02-19 17:54:06 +0100
commitd45074455a6141f3bfa9f5551d508c3a7fdc1a3f (patch)
treeec503c010c192b044dc14de969eb9a8798936444 /video
parent72d90f911afb46f2cab2d29fe8056c3b286086e9 (diff)
downloadmpv-d45074455a6141f3bfa9f5551d508c3a7fdc1a3f.tar.bz2
mpv-d45074455a6141f3bfa9f5551d508c3a7fdc1a3f.tar.xz
cocoa: fix cursor hiding in the Dock area of the screen
the cursor couldn’t be hidden when the cursor was at the same position as the Dock, even if the cursor was next to it. this is especially annoying in fullscreen since the Dock isn’t actually hidden but is still reported as being visible. this basically made the part of the screen, where the Dock resides, a ‘dead zone’. so instead of using the visibleFrame we will just use the normal frame. there is no problem at the top area of the screen, since a window can’t be placed above the menu bar and in fullscreen the menu bar is always reported as not being on screen. i suspect this was done so the cursor wasn’t hidden when the it was placed above the Dock when windowed. with the recent refactor this is not needed any more.
Diffstat (limited to 'video')
-rw-r--r--video/out/cocoa/events_view.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/cocoa/events_view.m b/video/out/cocoa/events_view.m
index 1bb816facf..eda4781418 100644
--- a/video/out/cocoa/events_view.m
+++ b/video/out/cocoa/events_view.m
@@ -86,7 +86,7 @@
- (BOOL)containsMouseLocation
{
- NSRect vF = [[self.window screen] visibleFrame];
+ NSRect vF = [[self.window screen] frame];
NSRect vFW = [self.window convertRectFromScreen:vF];
NSRect vFV = [self convertRect:vFW fromView:nil];
NSPoint pt = [self convertPoint:[self mouseLocation] fromView:nil];