mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-09 04:48:02 +02:00
touchpad: move CAP_GESTURE assignment to the touchpad code
That's where we set the pointer cap too. No functional changes. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
2dd1b3ead0
commit
7b6bd641c7
2 changed files with 1 additions and 1 deletions
|
|
@ -1918,6 +1918,7 @@ tp_init(struct tp_dispatch *tp,
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
device->seat_caps |= EVDEV_DEVICE_POINTER;
|
device->seat_caps |= EVDEV_DEVICE_POINTER;
|
||||||
|
device->seat_caps |= EVDEV_DEVICE_GESTURE;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1950,7 +1950,6 @@ evdev_configure_device(struct evdev_device *device)
|
||||||
|
|
||||||
if (udev_tags & EVDEV_UDEV_TAG_TOUCHPAD) {
|
if (udev_tags & EVDEV_UDEV_TAG_TOUCHPAD) {
|
||||||
device->dispatch = evdev_mt_touchpad_create(device);
|
device->dispatch = evdev_mt_touchpad_create(device);
|
||||||
device->seat_caps |= EVDEV_DEVICE_GESTURE;
|
|
||||||
log_info(libinput,
|
log_info(libinput,
|
||||||
"input device '%s', %s is a touchpad\n",
|
"input device '%s', %s is a touchpad\n",
|
||||||
device->devname, devnode);
|
device->devname, devnode);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue