1
0
Fork 0

monitor-manager: Move meta_monitor_manager_ function to right place

Move a meta_monitor_manager_ function to meta-monitor-manager.c where
it belongs.

https://bugzilla.gnome.org/show_bug.cgi?id=777732
This commit is contained in:
Jonas Ådahl 2016-12-19 15:56:50 +08:00
parent c041851fa5
commit b70187c2d9
2 changed files with 16 additions and 16 deletions

View file

@ -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,

View file

@ -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)
{