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:
Jonas Ådahl 2014-01-27 23:27:16 +01:00
parent 849b80a1e6
commit 3290b78bd6

View file

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