mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2025-12-25 03:30:06 +01:00
When running against a kernel without properties, continue as usual
Missing out on properties is not fatal. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
caa9267290
commit
f9bdb66ab4
1 changed files with 5 additions and 1 deletions
|
|
@ -267,8 +267,12 @@ libevdev_set_fd(struct libevdev* dev, int fd)
|
|||
if (rc < 0)
|
||||
goto out;
|
||||
|
||||
/* Built on a kernel with props, running against a kernel without property
|
||||
support. This should not be a fatal case, we'll be missing properties but other
|
||||
than that everything is as expected.
|
||||
*/
|
||||
rc = ioctl(fd, EVIOCGPROP(sizeof(dev->props)), dev->props);
|
||||
if (rc < 0)
|
||||
if (rc < 0 && errno != EINVAL)
|
||||
goto out;
|
||||
|
||||
rc = ioctl(fd, EVIOCGBIT(EV_REL, sizeof(dev->rel_bits)), dev->rel_bits);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue