backends/crtc: Keep a pointer to the monitor manager
Instead of passing it around or fetching the singleton, keep a pointer to the monitor manager that owns the CRTC. This will eventually be replaced with a per GPU/graphics card object. https://bugzilla.gnome.org/show_bug.cgi?id=785381
This commit is contained in:
@ -97,6 +97,8 @@ meta_monitor_manager_test_read_current (MetaMonitorManager *manager)
|
||||
|
||||
for (l = manager_test->test_setup->outputs; l; l = l->next)
|
||||
META_OUTPUT (l->data)->monitor_manager = manager;
|
||||
for (l = manager_test->test_setup->crtcs; l; l = l->next)
|
||||
META_CRTC (l->data)->monitor_manager = manager;
|
||||
|
||||
manager->modes = manager_test->test_setup->modes;
|
||||
|
||||
|
Reference in New Issue
Block a user