aboutsummaryrefslogtreecommitdiff
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
parentDon't pass pointers around to first_v and num_v. (diff)
downloadxf86-input-evdev-c504852aa27239a57445ca1de013b5bfefa68276.tar.gz
xf86-input-evdev-c504852aa27239a57445ca1de013b5bfefa68276.tar.bz2
xf86-input-evdev-c504852aa27239a57445ca1de013b5bfefa68276.zip
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);
}
}