mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-21 02:40:35 +01:00
evdev.c: Return from evdev_configure_device() after configuring a device as a tablet
As it turns out upon detecting a tablet in evdev_configure_device(), there isn't any call to return to escape the function once we've finished configuring the tablet. As a result, the code continues running and ends up reconfiguring the device as a pointer, resulting in strange behavior such as left-handed mode being enabled by default. Signed-off-by: Stephen Chandler Paul <thatslyude@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
395c449c8e
commit
56004ba34b
1 changed files with 1 additions and 0 deletions
|
|
@ -1448,6 +1448,7 @@ evdev_configure_device(struct evdev_device *device)
|
|||
log_info(libinput,
|
||||
"input device '%s', %s is a tablet\n",
|
||||
device->devname, devnode);
|
||||
return device->dispatch == NULL ? -1 : 0;
|
||||
}
|
||||
|
||||
for (i = 0; i < KEY_MAX; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue