mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2026-01-08 00:00:17 +01:00
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:
parent
b01c94a762
commit
999c89083e
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue