monitor-manager: Keep pointer to backend

Instead of accessing the global singleton, keep a pointer to the
backend in the MetaMonitorManager struct.

https://bugzilla.gnome.org/show_bug.cgi?id=785381
This commit is contained in:
Jonas Ådahl
2017-07-10 17:39:07 +08:00
parent 7603bb5fd5
commit 315a6f43d7
9 changed files with 106 additions and 16 deletions

View File

@ -403,7 +403,9 @@ static MetaMonitorManager *
meta_backend_native_create_monitor_manager (MetaBackend *backend,
GError **error)
{
return g_initable_new (META_TYPE_MONITOR_MANAGER_KMS, NULL, error, NULL);
return g_initable_new (META_TYPE_MONITOR_MANAGER_KMS, NULL, error,
"backend", backend,
NULL);
}
static MetaCursorRenderer *