summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2016-07-04 12:33:21 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2016-08-11 19:56:16 +1000
commitf89a79d9a43744607a77644316a510e07e709a4d (patch)
treea2728b9ae290dc3258aeb813c7bed2707886fd5f /src
parent96b3489f23c15da1c9402cb02a60560e4c36775d (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/evdev.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/evdev.c b/src/evdev.c
index ed581b4..2e6f837 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -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;