diff options
author | Olivier Fourdan <ofourdan@redhat.com> | 2021-02-09 13:01:21 +0100 |
---|---|---|
committer | Olivier Fourdan <ofourdan@redhat.com> | 2021-02-17 10:16:43 +0100 |
commit | 7531d71663320d47be6e0a8b73acc3ae2f84dc8c (patch) | |
tree | 1a228fe639f4bc3daea405ed08b6d15627252232 | |
parent | 0663a245ad5c283fc3938e6d61d4726344556660 (diff) | |
download | xserver-7531d71663320d47be6e0a8b73acc3ae2f84dc8c.tar.gz |
xwayland: Use a resolution of 0 for relative motion
That's what evdev/libinput drivers do.
Suggested-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Related: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1130
(cherry picked from commit ebdb2e264676c3b27a708328348efe73e0d3c8c2)
-rw-r--r-- | hw/xwayland/xwayland-input.c | 4 |
1 files 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; |