summaryrefslogtreecommitdiff
path: root/src/evdev.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-10-26 09:59:34 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-11-11 15:50:36 +1000
commitfc4f98153c2608389d87e37316036a31fb1021e7 (patch)
treed27ec4585a2e63b5243a182fe078f01bb04c21be /src/evdev.c
parentfabee66bcc7260ec50c3091be3f9b503eea65e61 (diff)
MT axes are counted separately, make sure they're initialized too.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/evdev.c')
-rw-r--r--src/evdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evdev.c b/src/evdev.c
index 8108969..366de37 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -1196,7 +1196,7 @@ EvdevAddAbsValuatorClass(DeviceIntPtr device)
EvdevInitAxesLabels(pEvdev, pEvdev->num_vals + num_mt_axes, atoms);
- if (!InitValuatorClassDeviceStruct(device, num_axes, atoms,
+ if (!InitValuatorClassDeviceStruct(device, num_axes + num_mt_axes, atoms,
GetMotionHistorySize(), Absolute)) {
xf86IDrvMsg(pInfo, X_ERROR, "failed to initialize valuator class device.\n");
goto out;