summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2010-09-08 11:29:11 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2010-10-11 08:46:51 +1000
commitc504852aa27239a57445ca1de013b5bfefa68276 (patch)
tree1d692991cb8796f9ef037b0a89477d89cdb9ffa7
parent4bbf9c9125db51394870c86413fe18a0c8ec7068 (diff)
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>
-rw-r--r--src/evdev.c2
1 files changed, 1 insertions, 1 deletions
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);
}
}