If we don't have capabilities we can deal with, return a different
error so the backends can handle it separately (they already do).
Signe-off-by: Peter Hutterer <peter.hutterer@who-t.net>
struct evdev_device *device;
char devname[256] = "unknown";
int fd;
+ int unhandled_device = 0;
/* Use non-blocking mode so that we can loop on read on
* evdev_device_data() until all events on the fd are
goto err;
if (device->seat_caps == 0) {
+ unhandled_device = 1;
goto err;
}
if (fd >= 0)
close_restricted(libinput, fd);
evdev_device_destroy(device);
- return NULL;
+
+ return unhandled_device ? EVDEV_UNHANDLED_DEVICE : NULL;
}
int