mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-25 18:37:50 +00:00
macOS: Ensure stored mouse position is correct when switching to a kitty window
Fixes #1103
This commit is contained in:
parent
e460866ebc
commit
e99b1be023
1 changed files with 6 additions and 0 deletions
|
|
@ -455,6 +455,12 @@ static const NSRange kEmptyRange = { NSNotFound, 0 };
|
|||
|
||||
_glfwInputWindowFocus(window, GLFW_TRUE);
|
||||
updateCursorMode(window);
|
||||
if (_glfw.ns.disabledCursorWindow != window && cursorInClientArea(window))
|
||||
{
|
||||
double x = 0, y = 0;
|
||||
_glfwPlatformGetCursorPos(window, &x, &y);
|
||||
_glfwInputCursorPos(window, x, y);
|
||||
}
|
||||
}
|
||||
|
||||
- (void)windowDidResignKey:(NSNotification *)notification
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue