Skip over ABS_MT_SLOT when syncing MT axis values

The slot event is already on the queue.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2013-06-03 16:36:34 +10:00
parent b01c94a762
commit 999c89083e

View file

@ -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;