From 3a7aa76509c7ce856e0d9b3e8d176c1f412b363e Mon Sep 17 00:00:00 2001 From: jestarray <34615798+jestarray@users.noreply.github.com> Date: Fri, 11 Sep 2026 07:18:19 -0700 Subject: [PATCH] [rcore_desktop_glfw.c] Do not reset mouse position user when user is off window (#6134) See this comment and Jeffs as to why https://github.com/raysan5/raylib/issues/5945#issuecomment-5595141064 --- src/platforms/rcore_desktop_glfw.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/platforms/rcore_desktop_glfw.c b/src/platforms/rcore_desktop_glfw.c index 795820181..b6718e5e4 100644 --- a/src/platforms/rcore_desktop_glfw.c +++ b/src/platforms/rcore_desktop_glfw.c @@ -2207,7 +2207,6 @@ static void CursorEnterCallback(GLFWwindow *window, int entered) else { CORE.Input.Mouse.cursorOnScreen = false; - CORE.Input.Mouse.currentPosition = (Vector2){ 0 }; } }