bugfix: really return focus list in IPC tree dump (instead of nodes list)
This commit is contained in:
parent
09523f36f5
commit
f10a3d9b75
10
src/ipc.c
10
src/ipc.c
|
@ -161,16 +161,16 @@ void dump_node(yajl_gen gen, struct Con *con, bool inplace_restart) {
|
||||||
|
|
||||||
ystr("nodes");
|
ystr("nodes");
|
||||||
y(array_open);
|
y(array_open);
|
||||||
Con *leaf;
|
Con *node;
|
||||||
TAILQ_FOREACH(leaf, &(con->nodes_head), nodes) {
|
TAILQ_FOREACH(node, &(con->nodes_head), nodes) {
|
||||||
dump_node(gen, leaf, inplace_restart);
|
dump_node(gen, node, inplace_restart);
|
||||||
}
|
}
|
||||||
y(array_close);
|
y(array_close);
|
||||||
|
|
||||||
ystr("focus");
|
ystr("focus");
|
||||||
y(array_open);
|
y(array_open);
|
||||||
TAILQ_FOREACH(leaf, &(con->nodes_head), nodes) {
|
TAILQ_FOREACH(node, &(con->focus_head), nodes) {
|
||||||
y(integer, (long int)leaf);
|
y(integer, (long int)node);
|
||||||
}
|
}
|
||||||
y(array_close);
|
y(array_close);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue