stage: Keep a pointer to the backend

Will be used later.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1391
This commit is contained in:
Jonas Ådahl 2020-07-29 10:11:08 +02:00
parent c23b675daf
commit f5958fa473

View File

@ -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",