mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 08:00:42 -05:00
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:
parent
c041851fa5
commit
b70187c2d9
@ -836,22 +836,6 @@ make_config_key (MetaConfiguration *key,
|
|||||||
key->n_outputs = o;
|
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 *
|
static MetaConfiguration *
|
||||||
meta_monitor_config_get_stored (MetaMonitorConfig *self,
|
meta_monitor_config_get_stored (MetaMonitorConfig *self,
|
||||||
MetaOutput *outputs,
|
MetaOutput *outputs,
|
||||||
|
@ -200,6 +200,22 @@ power_save_mode_changed (MetaMonitorManager *manager,
|
|||||||
manager->power_save_mode = mode;
|
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
|
static void
|
||||||
legacy_ensure_configured (MetaMonitorManager *manager)
|
legacy_ensure_configured (MetaMonitorManager *manager)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user