From 8d008112b6f267c277561cb30eac4d3f0ef787fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Tue, 9 Mar 2021 18:45:04 +0100 Subject: [PATCH] backends/x11: Pass the seat to the input settings Input settings requires a valid seat in order to initialize the a11y settings (since commit 1609d145), however in X11 we never set it and even if we create the input settings early (as per commit 7547891a) we never initialize the seat for it. This leads to startup critical errors on X11: clutter_seat_get_pointer_a11y_settings: assertion 'CLUTTER_IS_SEAT (seat)' failed Part-of: --- src/backends/x11/cm/meta-backend-x11-cm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/backends/x11/cm/meta-backend-x11-cm.c b/src/backends/x11/cm/meta-backend-x11-cm.c index 3b39178e0..b4f40754f 100644 --- a/src/backends/x11/cm/meta-backend-x11-cm.c +++ b/src/backends/x11/cm/meta-backend-x11-cm.c @@ -92,14 +92,14 @@ meta_backend_x11_cm_post_init (MetaBackend *backend) MetaBackendX11Cm *x11_cm = META_BACKEND_X11_CM (backend); ClutterSeat *seat; - x11_cm->input_settings = g_object_new (META_TYPE_INPUT_SETTINGS_X11, NULL); - - parent_backend_class->post_init (backend); - seat = clutter_backend_get_default_seat (clutter_get_default_backend ()); g_signal_connect_object (seat, "device-added", G_CALLBACK (on_device_added), backend, 0); + x11_cm->input_settings = g_object_new (META_TYPE_INPUT_SETTINGS_X11, + "seat", seat, NULL); + + parent_backend_class->post_init (backend); take_touch_grab (backend); }