aboutsummaryrefslogtreecommitdiff
path: root/src/evdev.c
diff options
context:
space:
mode:
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;