From f10a3d9b7571eb4e87e59609a062a9bb20e2b198 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 10 May 2010 00:00:43 +0200 Subject: [PATCH] bugfix: really return focus list in IPC tree dump (instead of nodes list) --- src/ipc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ipc.c b/src/ipc.c index 81429abd..c92f4480 100644 --- 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); -- 2.39.5