diff options
Diffstat (limited to 'src/fe-text/mainwindows-layout.c')
-rw-r--r-- | src/fe-text/mainwindows-layout.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fe-text/mainwindows-layout.c b/src/fe-text/mainwindows-layout.c index d3df6b86..072b9b2c 100644 --- a/src/fe-text/mainwindows-layout.c +++ b/src/fe-text/mainwindows-layout.c @@ -99,7 +99,8 @@ static GSList *get_sorted_windows_config(CONFIG_NODE *node) GSList *tmp, *output; output = NULL; - for (tmp = node->value; tmp != NULL; tmp = tmp->next) { + tmp = config_node_first(node->value); + for (; tmp != NULL; tmp = config_node_next(tmp)) { output = g_slist_insert_sorted(output, tmp->data, (GCompareFunc) window_node_cmp); } |