From a21b3bd602b31ee995b391a7b917282e7b0a1c33 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 20 Mar 2014 10:58:53 +1000 Subject: eventcomm: drop assumption of non-zero slot offset The kernel guarantees this is always 0 Signed-off-by: Peter Hutterer --- src/eventcomm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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)); -- cgit v1.2.3