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.
This commit is contained in:
Akemi 2017-02-19 03:05:34 +01:00
parent 72d90f911a
commit d45074455a
1 changed files with 1 additions and 1 deletions

View File

@ -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];