clutter/evdev: Set the backend keymap before using it

The device manager evdev assumes the keymap is set, so better set it
before its creation.

Closes: https://gitlab.gnome.org/GNOME/mutter/issues/451
Fixes: 6de81b051 "evdev: Implement ClutterKeymap"
This commit is contained in:
Olivier Fourdan 2019-01-30 11:24:25 +01:00
parent e0fd7a6d05
commit b04cca9eab

View File

@ -2136,10 +2136,10 @@ _clutter_events_evdev_init (ClutterBackend *backend)
{ {
CLUTTER_NOTE (EVENT, "Initializing evdev backend"); CLUTTER_NOTE (EVENT, "Initializing evdev backend");
backend->keymap = g_object_new (CLUTTER_TYPE_KEYMAP_EVDEV, NULL);
backend->device_manager = g_object_new (CLUTTER_TYPE_DEVICE_MANAGER_EVDEV, backend->device_manager = g_object_new (CLUTTER_TYPE_DEVICE_MANAGER_EVDEV,
"backend", backend, "backend", backend,
NULL); NULL);
backend->keymap = g_object_new (CLUTTER_TYPE_KEYMAP_EVDEV, NULL);
} }
void void