]> git.sur5r.net Git - i3/i3/commitdiff
run con_fix_percent unconditionally, not only on parsing errors
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 4 Jan 2014 20:59:41 +0000 (21:59 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 4 Jan 2014 20:59:41 +0000 (21:59 +0100)
src/load_layout.c

index c95bc99fd550688ec4f1e9389cbd83a3c69dddf5..de56cbcbd95619166ff1fdd934d735dbe62c0d70 100644 (file)
@@ -444,13 +444,13 @@ void tree_append_json(const char *filename, char **errormsg) {
         if (errormsg != NULL)
             *errormsg = sstrdup((const char*)str);
         yajl_free_error(hand, str);
-
-        /* In case not all containers were restored, we need to fix the
-         * percentages, otherwise i3 will crash immediately when rendering the
-         * next time. */
-        con_fix_percent(focused);
     }
 
+    /* In case not all containers were restored, we need to fix the
+     * percentages, otherwise i3 will crash immediately when rendering the
+     * next time. */
+    con_fix_percent(focused);
+
     setlocale(LC_NUMERIC, "");
 #if YAJL_MAJOR >= 2
     yajl_complete_parse(hand);