mirror of
https://github.com/X11Libre/xf86-input-evdev.git
synced 2026-04-14 11:44:16 +00:00
Set "rel" when converting absolute touchpad coordinates to relative (#20661)
We unset "abs" and convert to relative, but never set "rel" so the events don't get posted. This bit got broken in43dd2a9592. X.Org Bug 20661 <http://bugs.freedesktop.org/show_bug.cgi?id=20661> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry picked from commita3ea979c2b)
This commit is contained in:
committed by
Peter Hutterer
parent
486bbdc481
commit
1073cd4fdc
@@ -444,6 +444,7 @@ EvdevProcessEvent(InputInfoPtr pInfo, struct input_event *ev)
|
||||
/* convert to relative motion for touchpads */
|
||||
if (abs && (pEvdev->flags & EVDEV_TOUCHPAD)) {
|
||||
abs = 0;
|
||||
rel = 1;
|
||||
if (pEvdev->tool) { /* meaning, touch is active */
|
||||
if (pEvdev->old_vals[0] != -1)
|
||||
delta[REL_X] = pEvdev->vals[0] - pEvdev->old_vals[0];
|
||||
|
||||
Reference in New Issue
Block a user