mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 11:32:04 +00:00
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:
parent
c23b675daf
commit
f5958fa473
@ -64,6 +64,8 @@ struct _MetaStage
|
|||||||
{
|
{
|
||||||
ClutterStage parent;
|
ClutterStage parent;
|
||||||
|
|
||||||
|
MetaBackend *backend;
|
||||||
|
|
||||||
GPtrArray *watchers[N_WATCH_MODES];
|
GPtrArray *watchers[N_WATCH_MODES];
|
||||||
|
|
||||||
GList *overlays;
|
GList *overlays;
|
||||||
@ -305,6 +307,7 @@ meta_stage_new (MetaBackend *backend)
|
|||||||
MetaMonitorManager *monitor_manager;
|
MetaMonitorManager *monitor_manager;
|
||||||
|
|
||||||
stage = g_object_new (META_TYPE_STAGE, NULL);
|
stage = g_object_new (META_TYPE_STAGE, NULL);
|
||||||
|
stage->backend = backend;
|
||||||
|
|
||||||
monitor_manager = meta_backend_get_monitor_manager (backend);
|
monitor_manager = meta_backend_get_monitor_manager (backend);
|
||||||
g_signal_connect (monitor_manager, "power-save-mode-changed",
|
g_signal_connect (monitor_manager, "power-save-mode-changed",
|
||||||
|
Loading…
Reference in New Issue
Block a user