diff --git a/src/backends/meta-monitor-config.c b/src/backends/meta-monitor-config.c index bfc1f6cab..bb3393cd2 100644 --- a/src/backends/meta-monitor-config.c +++ b/src/backends/meta-monitor-config.c @@ -836,22 +836,6 @@ make_config_key (MetaConfiguration *key, key->n_outputs = o; } -gboolean -meta_monitor_manager_has_hotplug_mode_update (MetaMonitorManager *manager) -{ - MetaOutput *outputs; - unsigned n_outputs; - unsigned int i; - - outputs = meta_monitor_manager_get_outputs (manager, &n_outputs); - - for (i = 0; i < n_outputs; i++) - if (outputs[i].hotplug_mode_update) - return TRUE; - - return FALSE; -} - static MetaConfiguration * meta_monitor_config_get_stored (MetaMonitorConfig *self, MetaOutput *outputs, diff --git a/src/backends/meta-monitor-manager.c b/src/backends/meta-monitor-manager.c index 088d99282..a083a85ab 100644 --- a/src/backends/meta-monitor-manager.c +++ b/src/backends/meta-monitor-manager.c @@ -200,6 +200,22 @@ power_save_mode_changed (MetaMonitorManager *manager, manager->power_save_mode = mode; } +gboolean +meta_monitor_manager_has_hotplug_mode_update (MetaMonitorManager *manager) +{ + unsigned int i; + + for (i = 0; i < manager->n_outputs; i++) + { + MetaOutput *output = &manager->outputs[i]; + + if (output->hotplug_mode_update) + return TRUE; + } + + return FALSE; +} + static void legacy_ensure_configured (MetaMonitorManager *manager) {