MetaMonitorManager: ignore hotplug_mode_update at startup

hotplug_mode_update is used (mostly by VMs nowadays, and
VMware has implemented it) to inform that modes list (including
the preferred one) might change after an uevent.

However, when using MetaMonitorConfigManager we should
ignore this value at initialization level, or mutter
won't restore the configured values at startup.

https://bugzilla.gnome.org/show_bug.cgi?id=783073
This commit is contained in:
Marco Trevisan (Treviño) 2017-05-25 13:15:06 +08:00
parent 38a772bce7
commit 183f4b0c13

View File

@ -392,7 +392,8 @@ meta_monitor_manager_has_hotplug_mode_update (MetaMonitorManager *manager)
static gboolean
should_use_stored_config (MetaMonitorManager *manager)
{
return !meta_monitor_manager_has_hotplug_mode_update (manager);
return (manager->in_init ||
!meta_monitor_manager_has_hotplug_mode_update (manager));
}
static void