From c504852aa27239a57445ca1de013b5bfefa68276 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 8 Sep 2010 11:29:11 +1000 Subject: 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 Reviewed-by: Benjamin Tissoires --- src/evdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/evdev.c b/src/evdev.c index b634ab4..1775ad9 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -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); } } -- cgit v1.2.3