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:
Peter Hutterer
2010-09-08 11:29:11 +10:00
parent 4bbf9c9125
commit c504852aa2

View File

@@ -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);
}
}