summaryrefslogtreecommitdiff
path: root/src/evdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/evdev.c')
-rw-r--r--src/evdev.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/evdev.c b/src/evdev.c
index a738cfa..209ea7e 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -1455,8 +1455,7 @@ EvdevAddAbsValuatorClass(DeviceIntPtr device, int want_scroll_axes)
num_touches = pEvdev->mtdev->caps.slot.maximum -
pEvdev->mtdev->caps.slot.minimum + 1;
} else
- num_touches = pEvdev->absinfo[ABS_MT_SLOT].maximum -
- pEvdev->absinfo[ABS_MT_SLOT].minimum + 1;
+ num_touches = num_slots(pEvdev);
if (!InitTouchClassDeviceStruct(device, num_touches, mode,
num_mt_axes_total)) {