From ee5cf9068499c99b8344918ef7502da41c7f6688 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 13 Feb 2022 10:49:24 +0530 Subject: [PATCH] Cleanup previous PR and add changelog entry for it Fixes #4694 --- docs/changelog.rst | 2 ++ glfw/wl_init.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 1ee52b87b..0bdff64d5 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -131,6 +131,8 @@ Detailed list of changes - Fix a fast *click, move mouse, click* sequence causing the first click event to be discarded (:iss:`4603`) +- Wayland: Fix wheel mice with line based scrolling being incorrectly handled as high precision devices (:iss:`4694`) + 0.24.2 [2022-02-03] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/glfw/wl_init.c b/glfw/wl_init.c index 22a3f1385..8d3295e78 100644 --- a/glfw/wl_init.c +++ b/glfw/wl_init.c @@ -377,8 +377,8 @@ static void pointerHandleAxisStop(void *data UNUSED, static void pointerHandleAxisDiscrete(void *data UNUSED, struct wl_pointer *wl_pointer UNUSED, - uint32_t axis UNUSED, - int32_t discrete UNUSED) + uint32_t axis, + int32_t discrete) { _GLFWwindow* window = _glfw.wl.pointerFocus; double x = 0.0, y = 0.0;