diff options
author | Olivier Fourdan <ofourdan@redhat.com> | 2021-02-09 13:01:21 +0100 |
---|---|---|
committer | Olivier Fourdan <ofourdan@redhat.com> | 2021-02-15 09:42:00 +0100 |
commit | ebdb2e264676c3b27a708328348efe73e0d3c8c2 (patch) | |
tree | d5ce82ffdaed1dbc1ec171dd7b52210b3584c3d9 /hw | |
parent | b5e1f13681090fc327dc2cabee1dc123273e785b (diff) |
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
Diffstat (limited to 'hw')
-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; |