From 999c89083e21041b11042992fb9e8b436dde3237 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 3 Jun 2013 16:36:34 +1000 Subject: [PATCH] Skip over ABS_MT_SLOT when syncing MT axis values The slot event is already on the queue. Signed-off-by: Peter Hutterer --- libevdev/libevdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libevdev/libevdev.c b/libevdev/libevdev.c index 8a466b5..f60029f 100644 --- a/libevdev/libevdev.c +++ b/libevdev/libevdev.c @@ -421,6 +421,9 @@ sync_mt_state(struct libevdev *dev) for (j = ABS_MT_MIN; j < ABS_MT_MAX; j++) { int jdx = j - ABS_MT_MIN; + if (j == ABS_MT_SLOT) + continue; + if (dev->mt_slot_vals[i][jdx] == mt_state[jdx].val[i]) continue; -- 2.7.4