From e255cc52b96fd7015cf5847741b85248378fae0f Mon Sep 17 00:00:00 2001 From: Colin Kinloch Date: Thu, 4 Jan 2024 14:56:35 +0000 Subject: [PATCH] input/wayland: Use unaccelerated pointer motion This fixes small mouse movements being rounded down to 0. Fix "Mouse cursor appears to have a deadzone on Wayland" (#16015) --- input/common/wayland_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/input/common/wayland_common.c b/input/common/wayland_common.c index 8084699bea5f..1a36c61b6022 100644 --- a/input/common/wayland_common.c +++ b/input/common/wayland_common.c @@ -439,8 +439,8 @@ static void handle_relative_motion(void *data, { gfx_ctx_wayland_data_t *wl = (gfx_ctx_wayland_data_t*)data; - wl->input.mouse.delta_x = wl_fixed_to_int(dx); - wl->input.mouse.delta_y = wl_fixed_to_int(dy); + wl->input.mouse.delta_x = wl_fixed_to_int(dx_unaccel); + wl->input.mouse.delta_y = wl_fixed_to_int(dy_unaccel); if (wl->locked_pointer) {