]> git.sur5r.net Git - i3/i3/commitdiff
ipc: add member 'focused' to every container
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 4 Jul 2010 20:17:18 +0000 (22:17 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 4 Jul 2010 20:17:18 +0000 (22:17 +0200)
src/ipc.c

index bde2485216da8d152dbcfac35aa7a197ef8ba92c..7c0a0f375f190d7aa014ad20342a942992e915f5 100644 (file)
--- a/src/ipc.c
+++ b/src/ipc.c
@@ -140,6 +140,9 @@ void dump_node(yajl_gen gen, struct Con *con, bool inplace_restart) {
         ystr("urgent");
         y(integer, con->urgent);
 
+        ystr("focused");
+        y(integer, (con == focused));
+
         ystr("layout");
         y(integer, con->layout);