evdev: restore EVDEV_UNHANDLED_DEVICE error code
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 5 Feb 2014 23:33:26 +0000 (09:33 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 5 Feb 2014 23:46:34 +0000 (09:46 +1000)
If we don't have capabilities we can deal with, return a different error so
the backends can handle it separately (they already do).

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/evdev.c

index 9c6d116..afcf14f 100644 (file)
@@ -668,6 +668,10 @@ err:
        if (fd >= 0)
                close_restricted(libinput, fd);
        evdev_device_destroy(device);
+
+       if (device->seat_caps == 0)
+               return EVDEV_UNHANDLED_DEVICE;
+
        return NULL;
 }