From ebdb2e264676c3b27a708328348efe73e0d3c8c2 Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Tue, 9 Feb 2021 13:01:21 +0100 Subject: [PATCH] xwayland: Use a resolution of 0 for relative motion That's what evdev/libinput drivers do. Suggested-by: Peter Hutterer Signed-off-by: Olivier Fourdan Reviewed-by: Peter Hutterer Related: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1130 --- hw/xwayland/xwayland-input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/xwayland/xwayland-input.c b/hw/xwayland/xwayland-input.c index 8e57fda1d..2e4b20024 100644 --- a/hw/xwayland/xwayland-input.c +++ b/hw/xwayland/xwayland-input.c @@ -200,9 +200,9 @@ xwl_pointer_proc_relative(DeviceIntPtr device, int what) /* Valuators */ InitValuatorAxisStruct(device, 0, axes_labels[0], - NO_AXIS_LIMITS, NO_AXIS_LIMITS, 1, 0, 1, Relative); + NO_AXIS_LIMITS, NO_AXIS_LIMITS, 0, 0, 0, Relative); InitValuatorAxisStruct(device, 1, axes_labels[1], - NO_AXIS_LIMITS, NO_AXIS_LIMITS, 1, 0, 1, Relative); + NO_AXIS_LIMITS, NO_AXIS_LIMITS, 0, 0, 0, Relative); if (!InitPtrFeedbackClassDeviceStruct(device, xwl_pointer_control)) return BadValue;