From 9da275cf736adaa841bd18d55a07b740e8c42c62 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Mon, 11 Nov 2019 19:21:09 +0100 Subject: [PATCH] backends: Set pointer constrain/relative motion hooks before backend init The backend being initialized triggers a pointer warp (and motion event) where we want to observe the callbacks put in place. So ensure we set up the hooks before that could happen. https://gitlab.gnome.org/GNOME/mutter/merge_requests/852 --- src/backends/native/meta-backend-native.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backends/native/meta-backend-native.c b/src/backends/native/meta-backend-native.c index bd441626b..b0cd1c31a 100644 --- a/src/backends/native/meta-backend-native.c +++ b/src/backends/native/meta-backend-native.c @@ -344,8 +344,6 @@ meta_backend_native_post_init (MetaBackend *backend) ClutterSeat *seat = clutter_backend_get_default_seat (clutter_backend); MetaSettings *settings = meta_backend_get_settings (backend); - META_BACKEND_CLASS (meta_backend_native_parent_class)->post_init (backend); - meta_seat_native_set_pointer_constrain_callback (META_SEAT_NATIVE (seat), pointer_constrain_callback, NULL, NULL); @@ -353,6 +351,8 @@ meta_backend_native_post_init (MetaBackend *backend) relative_motion_filter, meta_backend_get_monitor_manager (backend)); + META_BACKEND_CLASS (meta_backend_native_parent_class)->post_init (backend); + if (meta_settings_is_experimental_feature_enabled (settings, META_EXPERIMENTAL_FEATURE_RT_SCHEDULER)) {