The kernel guarantees slots start at 0

Signed-off-by: Peter Hutterer <[email protected]>
---
 src/eventcomm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/eventcomm.c b/src/eventcomm.c
index 82f620d..ff3d84d 100644
--- a/src/eventcomm.c
+++ b/src/eventcomm.c
@@ -110,7 +110,7 @@ last_mt_vals_slot(const SynapticsPrivate * priv)
 {
     struct eventcomm_proto_data *proto_data =
         (struct eventcomm_proto_data *) priv->proto_data;
-    int value = proto_data->cur_slot - proto_data->mtdev->caps.slot.minimum;
+    int value = proto_data->cur_slot;
 
     return value < priv->num_slots ? value : -1;
 }
-- 
1.8.5.3

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to