mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-24 20:30:04 +01:00
evdev: restore EVDEV_UNHANDLED_DEVICE error code
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>
This commit is contained in:
parent
e13f736cff
commit
e8c20c7241
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue