Skip to content

Commit

Permalink
Make improvements to mouse appearance - this is still inaccurate on t…
Browse files Browse the repository at this point in the history
…he goal deletion "button"
  • Loading branch information
TheROPFather committed Oct 3, 2018
1 parent 25a9f28 commit 0e603b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/archutils/Darwin/SMMain.mm
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ float MACMouseX()
NSRect frame = [[[NSApplication sharedApplication] mainWindow] frame];
//NSPoint mouseLoc = [[[NSApplication sharedApplication] mainWindow] mouseLocationOutsideOfEventStream];
NSPoint mouseLoc = [NSEvent mouseLocation];
return mouseLoc.x - frame.origin.x - 2; //Needed for padding the release animation
return mouseLoc.x - frame.origin.x - 3; //Needed for padding the release animation
}
float MACMouseY()
{
NSRect frame = [[[NSApplication sharedApplication] mainWindow] frame];
//NSPoint mouseLoc = [[[NSApplication sharedApplication] mainWindow] mouseLocationOutsideOfEventStream];
NSPoint mouseLoc = [NSEvent mouseLocation];
return frame.size.height - (mouseLoc.y - frame.origin.y) - 15; //Appears to compensate for titlebar
return frame.size.height - (mouseLoc.y - frame.origin.y - 1) - 10; //Appears to compensate for titlebar
// This padding should be replaced in the future to use Cocoa calls to content
}

Expand Down

0 comments on commit 0e603b3

Please sign in to comment.