[PATCH libinput 5/8] evdev: Early out during configure if not using fallback dispatch
Jonas Ådahl
jadahl at gmail.com
Wed Jul 16 13:39:10 PDT 2014
The feature set configured otherwise would not work anyway as it
would need using the fallback dispatch to function.
Signed-off-by: Jonas Ådahl <jadahl at gmail.com>
---
src/evdev.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/evdev.c b/src/evdev.c
index f980812..fec24f5 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -700,9 +700,11 @@ evdev_configure_device(struct evdev_device *device)
!libevdev_has_event_code(evdev, EV_KEY, BTN_TOOL_PEN) &&
(has_abs || has_mt)) {
device->dispatch = evdev_mt_touchpad_create(device);
+ device->seat_caps |= EVDEV_DEVICE_POINTER;
log_info(libinput,
"input device '%s', %s is a touchpad\n",
device->devname, device->devnode);
+ return device->dispatch == NULL ? -1 : 0;
}
for (i = KEY_ESC; i < KEY_MAX; i++) {
if (i >= BTN_MISC && i < KEY_OK)
--
1.8.5.1
More information about the wayland-devel
mailing list