From d45074455a6141f3bfa9f5551d508c3a7fdc1a3f Mon Sep 17 00:00:00 2001 From: Akemi Date: Sun, 19 Feb 2017 03:05:34 +0100 Subject: cocoa: fix cursor hiding in the Dock area of the screen MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- video/out/cocoa/events_view.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video') 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]; -- cgit v1.2.3