monitor-manager: Don't set current config if only verifying
When verifying if a configuration is applicable, don't set it as current when applying succeeded, or else reverting to a previous configuration doesn't work after having verified. https://bugzilla.gnome.org/show_bug.cgi?id=765011
This commit is contained in:
parent
4cc5b25493
commit
777963eeb6
1 changed files with 9 additions and 1 deletions
|
@ -471,7 +471,15 @@ meta_monitor_manager_apply_monitors_config (MetaMonitorManager *manager,
|
|||
if (!manager_class->apply_monitors_config (manager, config, method, error))
|
||||
return FALSE;
|
||||
|
||||
meta_monitor_config_manager_set_current (manager->config_manager, config);
|
||||
switch (method)
|
||||
{
|
||||
case META_MONITORS_CONFIG_METHOD_TEMPORARY:
|
||||
case META_MONITORS_CONFIG_METHOD_PERSISTENT:
|
||||
meta_monitor_config_manager_set_current (manager->config_manager, config);
|
||||
break;
|
||||
case META_MONITORS_CONFIG_METHOD_VERIFY:
|
||||
break;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue