From 94f3da53aa2e51a8b03fd5c38b21cc80b0bfd81d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 21 Oct 2025 09:44:41 +0530 Subject: [PATCH] Cleanup previous PR --- docs/changelog.rst | 3 +++ glfw/wl_init.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 1cdb1e13f..4db14878f 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -174,6 +174,9 @@ Detailed list of changes - Wayland: Fix ``center-sized`` panels not working on smithay based compositors (:pull:`9117`) +- Wayland: Fix scrolling using some mouse wheels that produce "VALUE120" based + scroll events too fast on some compositors (:pull:`9128`) + - Add support for Unicode 17 0.43.1 [2025-10-01] diff --git a/glfw/wl_init.c b/glfw/wl_init.c index eaa52d8de..390298cee 100644 --- a/glfw/wl_init.c +++ b/glfw/wl_init.c @@ -202,8 +202,8 @@ pointer_handle_frame(void *data UNUSED, struct wl_pointer *pointer UNUSED) { _GLFWwindow* window = _glfw.wl.pointerFocus; if (!window) return; float x = 0, y = 0; - const int HIGHRES = 1; - const int VALUE120 = 1 << 4; + static const int HIGHRES = 1; + static const int VALUE120 = 1 << 4; int flags = 0; if (info.discrete.y_axis_type != AXIS_EVENT_UNKNOWN) {