From f5958fa473c053cedaad2ca905caf28f09917660 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Wed, 29 Jul 2020 10:11:08 +0200 Subject: [PATCH] stage: Keep a pointer to the backend Will be used later. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1391 --- src/backends/meta-stage.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/backends/meta-stage.c b/src/backends/meta-stage.c index 072241ec9..2cda7d471 100644 --- a/src/backends/meta-stage.c +++ b/src/backends/meta-stage.c @@ -64,6 +64,8 @@ struct _MetaStage { ClutterStage parent; + MetaBackend *backend; + GPtrArray *watchers[N_WATCH_MODES]; GList *overlays; @@ -305,6 +307,7 @@ meta_stage_new (MetaBackend *backend) MetaMonitorManager *monitor_manager; stage = g_object_new (META_TYPE_STAGE, NULL); + stage->backend = backend; monitor_manager = meta_backend_get_monitor_manager (backend); g_signal_connect (monitor_manager, "power-save-mode-changed",