mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-21 20:52:19 +00:00
macOS: Fix cocoa mouse y-coord off by one
See https://github.com/glfw/glfw/issues/1461
This commit is contained in:
parent
41318d763b
commit
8969206450
1 changed files with 1 additions and 1 deletions
|
|
@ -657,7 +657,7 @@ static GLFWapplicationshouldhandlereopenfun handle_reopen_callback = NULL;
|
|||
const NSRect contentRect = [window->ns.view frame];
|
||||
const NSPoint pos = [event locationInWindow];
|
||||
|
||||
_glfwInputCursorPos(window, pos.x, contentRect.size.height - pos.y);
|
||||
_glfwInputCursorPos(window, pos.x, contentRect.size.height - pos.y - 1);
|
||||
}
|
||||
|
||||
window->ns.cursorWarpDeltaX = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue