diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2018-10-04 11:45:46 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2018-10-04 11:47:46 +1000 |
commit | a759610292a53067fc811e70703bffff8dc0cb16 (patch) | |
tree | 3fc15a3f5b15d4f0503fee79a6c6d29bb98dbafd | |
parent | 21ff2ca7d1a771f6dcecb5b73dc1031f77c9dd69 (diff) |
Use the seat slot, not the device slot for touch events
The device slot is per-device, so if we have more than one device we may get a
touch down event for a slot already in use.
Fixes https://gitlab.freedesktop.org/libinput/libinput/issues/153
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | src/xf86libinput.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xf86libinput.c b/src/xf86libinput.c index 1277a70..a00b0a5 100644 --- a/src/xf86libinput.c +++ b/src/xf86libinput.c @@ -1705,7 +1705,7 @@ xf86libinput_handle_touch(InputInfoPtr pInfo, if ((driver_data->capabilities & CAP_TOUCH) == 0) return; - slot = libinput_event_touch_get_slot(event); + slot = libinput_event_touch_get_seat_slot(event); switch (event_type) { case LIBINPUT_EVENT_TOUCH_DOWN: |