mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-05 00:30:26 +01:00
evdev: move the fallback dispatch creation to evdev_configure_device
All the other devices are created in there too, unify that approach. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
96b3489f23
commit
f89a79d9a4
1 changed files with 2 additions and 3 deletions
|
|
@ -2290,6 +2290,8 @@ evdev_configure_device(struct evdev_device *device)
|
|||
return false;
|
||||
}
|
||||
|
||||
device->dispatch = fallback_dispatch_create(&device->base);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
@ -2501,9 +2503,6 @@ evdev_device_create(struct libinput_seat *seat,
|
|||
goto err;
|
||||
}
|
||||
|
||||
/* If the dispatch was not set up use the fallback. */
|
||||
if (device->dispatch == NULL)
|
||||
device->dispatch = fallback_dispatch_create(&device->base);
|
||||
if (device->dispatch == NULL)
|
||||
goto err;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue