run con_fix_percent unconditionally, not only on parsing errors
This commit is contained in:
parent
9daf0d8b2b
commit
18e6184f1c
|
@ -444,12 +444,12 @@ void tree_append_json(const char *filename, char **errormsg) {
|
||||||
if (errormsg != NULL)
|
if (errormsg != NULL)
|
||||||
*errormsg = sstrdup((const char*)str);
|
*errormsg = sstrdup((const char*)str);
|
||||||
yajl_free_error(hand, str);
|
yajl_free_error(hand, str);
|
||||||
|
}
|
||||||
|
|
||||||
/* In case not all containers were restored, we need to fix the
|
/* In case not all containers were restored, we need to fix the
|
||||||
* percentages, otherwise i3 will crash immediately when rendering the
|
* percentages, otherwise i3 will crash immediately when rendering the
|
||||||
* next time. */
|
* next time. */
|
||||||
con_fix_percent(focused);
|
con_fix_percent(focused);
|
||||||
}
|
|
||||||
|
|
||||||
setlocale(LC_NUMERIC, "");
|
setlocale(LC_NUMERIC, "");
|
||||||
#if YAJL_MAJOR >= 2
|
#if YAJL_MAJOR >= 2
|
||||||
|
|
Loading…
Reference in New Issue