From 1892a6b0c47dbbc4f334aeaf062f9cbcfb068696 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Tue, 21 Feb 2017 17:32:07 +0800 Subject: [PATCH] monitor-config-store: Finish logical monitor before verifying If we verify the logical monitor before completing it (calculating the size), we can't check what the result of the completion. https://bugzilla.gnome.org/show_bug.cgi?id=777732 --- src/backends/meta-monitor-config-store.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backends/meta-monitor-config-store.c b/src/backends/meta-monitor-config-store.c index 40460aec5..1785b8f07 100644 --- a/src/backends/meta-monitor-config-store.c +++ b/src/backends/meta-monitor-config-store.c @@ -491,10 +491,10 @@ handle_end_element (GMarkupParseContext *context, if (logical_monitor_config->scale == 0) logical_monitor_config->scale = 1; - if (!meta_verify_logical_monitor_config (logical_monitor_config, error)) + if (!derive_logical_monitor_layout (logical_monitor_config, error)) return; - if (!derive_logical_monitor_layout (logical_monitor_config, error)) + if (!meta_verify_logical_monitor_config (logical_monitor_config, error)) return; parser->current_logical_monitor_configs =