backends/native: Move KMS fd management to monitor manager

Move finding, opening and managment of the KMS file descriptor to
MetaMonitorManagerKms. This means that the monitor manager creation can
now fail, both if more than one GPU with connectors is discovered, or
if finding or opening the primary GPU fails.

https://bugzilla.gnome.org/show_bug.cgi?id=785381
This commit is contained in:
Jonas Ådahl
2017-07-06 16:00:56 +08:00
parent 518fb9fb5e
commit 16a6aef5a7
14 changed files with 470 additions and 390 deletions

View File

@ -36,7 +36,8 @@ meta_backend_test_init (MetaBackendTest *backend_test)
}
static MetaMonitorManager *
meta_backend_test_create_monitor_manager (MetaBackend *backend)
meta_backend_test_create_monitor_manager (MetaBackend *backend,
GError **error)
{
return g_object_new (META_TYPE_MONITOR_MANAGER_TEST, NULL);
}