From b04cca9eab574fdda133e161750fefcc6ea9a573 Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Wed, 30 Jan 2019 11:24:25 +0100 Subject: [PATCH] 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" --- clutter/clutter/evdev/clutter-device-manager-evdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/clutter/evdev/clutter-device-manager-evdev.c b/clutter/clutter/evdev/clutter-device-manager-evdev.c index dc14bfc20..84b0aad49 100644 --- a/clutter/clutter/evdev/clutter-device-manager-evdev.c +++ b/clutter/clutter/evdev/clutter-device-manager-evdev.c @@ -2136,10 +2136,10 @@ _clutter_events_evdev_init (ClutterBackend *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", backend, NULL); - backend->keymap = g_object_new (CLUTTER_TYPE_KEYMAP_EVDEV, NULL); } void