mirror of
https://github.com/X11Libre/xf86-input-libinput.git
synced 2026-04-14 10:54:17 +00:00
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>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user