mirror of
https://github.com/X11Libre/xf86-input-evdev.git
synced 2026-04-14 11:44:16 +00:00
Fix valuator offset when posting absolute motion events.
If first_v was not zero, the values passed to xf86PostMotionEventP were wrong. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Benjamin Tissoires <tissoire@cena.fr>
This commit is contained in:
@@ -641,7 +641,7 @@ EvdevPostAbsoluteMotionEvents(InputInfoPtr pInfo, int num_v, int first_v,
|
||||
* just work.
|
||||
*/
|
||||
if (pEvdev->abs && pEvdev->tool) {
|
||||
xf86PostMotionEventP(pInfo->dev, TRUE, first_v, num_v, v);
|
||||
xf86PostMotionEventP(pInfo->dev, TRUE, first_v, num_v, v + first_v);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user