Merge branch 'macos_mouse_cursor_off_by_one' of https://github.com/Luflosi/kitty

This commit is contained in:
Kovid Goyal 2019-05-22 06:06:33 +05:30
commit 9f7f353485
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -660,7 +660,7 @@ static GLFWapplicationshouldhandlereopenfun handle_reopen_callback = NULL;
// NOTE: The returned location uses base 0,1 not 0,0
const NSPoint pos = [event locationInWindow];
_glfwInputCursorPos(window, pos.x, contentRect.size.height - pos.y - 1);
_glfwInputCursorPos(window, pos.x, contentRect.size.height - pos.y);
}
window->ns.cursorWarpDeltaX = 0;