Ignore devices that libinput doesn't understand
This commit is contained in:
parent
5e93ccda4c
commit
1a0418f997
1 changed files with 2 additions and 2 deletions
|
|
@ -86,13 +86,13 @@ size_t libinput_discover(bool match(struct libinput_device *), char devices[][32
|
|||
struct libinput_device * device = libinput_path_add_device(context, path);
|
||||
if(!device) {
|
||||
perror("unable to add device to libinput context:");
|
||||
return false;
|
||||
continue;
|
||||
}
|
||||
|
||||
device = libinput_device_ref(device);
|
||||
if(!device) {
|
||||
perror("unable to reference device within libinput context:");
|
||||
return false;
|
||||
continue;
|
||||
}
|
||||
|
||||
if (match(device)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue