From ef7b456ce745af5526a0e14904a0d344a84cbd68 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 20 Mar 2026 02:26:09 +0000 Subject: [PATCH] Fix scroll valuator reset when mouse leaves window without focus change Fixes #9716 --- glfw/x11_window.c | 1 + 1 file changed, 1 insertion(+) diff --git a/glfw/x11_window.c b/glfw/x11_window.c index b83a891ac..05c8ea094 100644 --- a/glfw/x11_window.c +++ b/glfw/x11_window.c @@ -2206,6 +2206,7 @@ static void processEvent(XEvent *event) case LeaveNotify: { + resetScrollValuators(); _glfwInputCursorEnter(window, false); return; }