mirror of
https://github.com/glfw/glfw.git
synced 2025-08-31 19:11:49 +00:00
Merge 6419ed578f
into 63a7e8b7f8
This commit is contained in:
commit
442b4d634e
@ -1437,7 +1437,11 @@ static void processEvent(XEvent *event)
|
|||||||
updateCursorImage(window);
|
updateCursorImage(window);
|
||||||
|
|
||||||
_glfwInputCursorEnter(window, GLFW_TRUE);
|
_glfwInputCursorEnter(window, GLFW_TRUE);
|
||||||
_glfwInputCursorPos(window, x, y);
|
|
||||||
|
// Don't call the cursor callback when GLFW_CURSOR_DISABLED for
|
||||||
|
// this event, it snaps the cursor back to the center
|
||||||
|
if (window->cursorMode != GLFW_CURSOR_DISABLED)
|
||||||
|
_glfwInputCursorPos(window, x, y);
|
||||||
|
|
||||||
window->x11.lastCursorPosX = x;
|
window->x11.lastCursorPosX = x;
|
||||||
window->x11.lastCursorPosY = y;
|
window->x11.lastCursorPosY = y;
|
||||||
|
Loading…
Reference in New Issue
Block a user