[PATCH evdev 3/4] Fix valuator offset when posting absolute motion events.
Peter Hutterer
peter.hutterer at who-t.net
Sun Oct 10 16:23:21 PDT 2010
If first_v was not zero, the values passed to xf86PostMotionEventP were
wrong.
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
src/evdev.c | 2 +-
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);
}
}
--
1.7.2.3
More information about the xorg-devel
mailing list