]> git.sur5r.net Git - i3/i3/commitdiff
ipc: add active flag
authorMichael Stapelberg <michael@stapelberg.de>
Thu, 11 Mar 2010 15:48:48 +0000 (16:48 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Thu, 11 Mar 2010 15:48:48 +0000 (16:48 +0100)
src/ipc.c

index 15676e4e123d84c6a52ecc8737a7810d79e5dac8..0df379b4889cc7887a8f910af47a88280707ef5b 100644 (file)
--- a/src/ipc.c
+++ b/src/ipc.c
@@ -115,6 +115,9 @@ static void ipc_send_workspaces(int fd) {
                 ystr("name");
                 ystr(ws->utf8_name);
 
+                ystr("active");
+                y(bool, ws->output->current_workspace == ws);
+
                 ystr("rect");
                 y(map_open);
                 ystr("x");