summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2014-03-20 10:58:53 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2014-03-20 11:51:12 +1000
commita21b3bd602b31ee995b391a7b917282e7b0a1c33 (patch)
tree8b1b091690d6e66bbdf27c43a0b04d30dd711b7e /src
parent91cc1e82143b939bfb4fce97429b07105333e146 (diff)
eventcomm: drop assumption of non-zero slot offset
The kernel guarantees this is always 0 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src')
-rw-r--r--src/eventcomm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/eventcomm.c b/src/eventcomm.c
index 5db7e48..27283ca 100644
--- a/src/eventcomm.c
+++ b/src/eventcomm.c
@@ -808,8 +808,7 @@ event_query_touch(InputInfoPtr pInfo)
};
if (mtdev->caps.slot.maximum > 0)
- priv->max_touches = mtdev->caps.slot.maximum -
- mtdev->caps.slot.minimum + 1;
+ priv->max_touches = mtdev->caps.slot.maximum + 1;
priv->touch_axes = malloc(priv->num_mt_axes *
sizeof(SynapticsTouchAxisRec));