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 ebdb2e2646
)
This commit is contained in:
parent
0663a245ad
commit
7531d71663
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user