| author | Chase Douglas <chase.douglas@canonical.com> | 2012-05-24 17:48:38 (GMT) |
|---|---|---|
| committer | Peter Hutterer <peter.hutterer@who-t.net> | 2012-05-24 23:33:52 (GMT) |
| commit | 9ce068e760e1282183c7aa1b4cc6b0fcb6b494dd (patch) (side-by-side diff) | |
| tree | f5780b705e6e5f79e91023f870f41c9187093166 | |
| parent | 2c8da280b3ab635d049784345d025d289348687b (diff) | |
| download | xf86-input-evdev-master.zip xf86-input-evdev-master.tar.gz | |
Protocol B devices report the number of touches by giving a maximum and
minimum slot value. The current code ignores the minimum value, which is
usually 0, and underreports the number of touches by 1.
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
| -rw-r--r-- | src/evdev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/evdev.c b/src/evdev.c index feb018c..4b86f66 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -1384,7 +1384,8 @@ EvdevAddAbsValuatorClass(DeviceIntPtr device) XIDependentTouch : XIDirectTouch; if (pEvdev->mtdev->caps.slot.maximum > 0) - num_touches = pEvdev->mtdev->caps.slot.maximum; + num_touches = pEvdev->mtdev->caps.slot.maximum - + pEvdev->mtdev->caps.slot.minimum + 1; if (!InitTouchClassDeviceStruct(device, num_touches, mode, num_mt_axes_total)) { |
