]> git.sur5r.net Git - i3/i3/commitdiff
ipc: include floating-nodes in tree reply
authorMichael Stapelberg <michael@stapelberg.de>
Tue, 1 Jun 2010 18:50:23 +0000 (20:50 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Tue, 1 Jun 2010 18:50:23 +0000 (20:50 +0200)
src/ipc.c

index e757ed2296ca416fe089d174718b3a84c3afee8b..1ca0778bf1b366db8025f03ae6adec207d5c1fcd 100644 (file)
--- a/src/ipc.c
+++ b/src/ipc.c
@@ -168,6 +168,13 @@ void dump_node(yajl_gen gen, struct Con *con, bool inplace_restart) {
         }
         y(array_close);
 
+        ystr("floating-nodes");
+        y(array_open);
+        TAILQ_FOREACH(node, &(con->floating_head), floating_windows) {
+                dump_node(gen, node, inplace_restart);
+        }
+        y(array_close);
+
         ystr("focus");
         y(array_open);
         TAILQ_FOREACH(node, &(con->focus_head), nodes) {