mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 16:37:27 +00:00
Wayland: Fix mouse pointer position update not being sent when focus regained
GLFW Wayland backend was not sending a cursor position input event on mouse entering the window surface. Fixes #8397
This commit is contained in:
parent
a896518b54
commit
0339d59851
2 changed files with 5 additions and 1 deletions
|
|
@ -141,6 +141,8 @@ Detailed list of changes
|
|||
|
||||
- macOS: notify kitten: Fix waiting for result from desktop notification not working (:disc:`8379`)
|
||||
|
||||
- Wayland: Fix mouse pointer position update not being sent when focus regained (:iss`8397`)
|
||||
|
||||
|
||||
0.39.1 [2025-02-01]
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
|
|
|||
4
glfw/wl_init.c
vendored
4
glfw/wl_init.c
vendored
|
|
@ -94,9 +94,11 @@ pointerHandleEnter(
|
|||
window->wl.hovered = true;
|
||||
window->wl.cursorPosX = x;
|
||||
window->wl.cursorPosY = y;
|
||||
|
||||
_glfwPlatformSetCursor(window, window->wl.currentCursor);
|
||||
_glfwInputCursorEnter(window, true);
|
||||
// Ensure kitty updates the mouse position, see https://github.com/kovidgoyal/kitty/issues/8397
|
||||
_glfwInputCursorPos(window, x, y);
|
||||
_glfw.wl.cursorPreviousShape = GLFW_INVALID_CURSOR;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue