]> git.sur5r.net Git - i3/i3/commitdiff
bugfix: really return focus list in IPC tree dump (instead of nodes list)
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 9 May 2010 22:00:43 +0000 (00:00 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 9 May 2010 22:00:43 +0000 (00:00 +0200)
src/ipc.c

index 81429abd46bda50c3598f115a5a3bd7ef7a00343..c92f4480d2b29e6d6b76bf8fa4a20f407c1434e4 100644 (file)
--- a/src/ipc.c
+++ b/src/ipc.c
@@ -161,16 +161,16 @@ void dump_node(yajl_gen gen, struct Con *con, bool inplace_restart) {
 
         ystr("nodes");
         y(array_open);
-        Con *leaf;
-        TAILQ_FOREACH(leaf, &(con->nodes_head), nodes) {
-                dump_node(gen, leaf, inplace_restart);
+        Con *node;
+        TAILQ_FOREACH(node, &(con->nodes_head), nodes) {
+                dump_node(gen, node, inplace_restart);
         }
         y(array_close);
 
         ystr("focus");
         y(array_open);
-        TAILQ_FOREACH(leaf, &(con->nodes_head), nodes) {
-                y(integer, (long int)leaf);
+        TAILQ_FOREACH(node, &(con->focus_head), nodes) {
+                y(integer, (long int)node);
         }
         y(array_close);