From: Peter Hutterer Date: Mon, 3 Jun 2013 06:36:34 +0000 (+1000) Subject: Skip over ABS_MT_SLOT when syncing MT axis values X-Git-Tag: libevdev-0.2~129 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=999c89083e21041b11042992fb9e8b436dde3237;p=platform%2Fupstream%2Flibevdev.git Skip over ABS_MT_SLOT when syncing MT axis values The slot event is already on the queue. Signed-off-by: Peter Hutterer --- 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;