mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-04 09:40:14 +01:00
evdev: Don't report touch devices with buttons as actual touch devices
This was a detail of the original version of the commit "evdev: Remove EVDEV_TOUCH and with it evdev_device->caps" that got lost during porting. Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
This commit is contained in:
parent
849b80a1e6
commit
3290b78bd6
1 changed files with 1 additions and 1 deletions
|
|
@ -586,7 +586,7 @@ evdev_configure_device(struct evdev_device *device)
|
|||
device->seat_caps |= EVDEV_DEVICE_POINTER;
|
||||
if (has_keyboard)
|
||||
device->seat_caps |= EVDEV_DEVICE_KEYBOARD;
|
||||
if (has_touch)
|
||||
if (has_touch && !has_button)
|
||||
device->seat_caps |= EVDEV_DEVICE_TOUCH;
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue