]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: in get_workspaces, only consider the CT_CON, not the CT_DOCKAREAs (Thanks...
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 20 Feb 2011 23:54:29 +0000 (00:54 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 20 Feb 2011 23:54:29 +0000 (00:54 +0100)
src/ipc.c

index fe1b24a8e36ba964b5b4fdcd8dfda50a819d568b..b80eae1262c614f2b92140ef3ddb34ea7df32148 100644 (file)
--- a/src/ipc.c
+++ b/src/ipc.c
@@ -290,6 +290,9 @@ IPC_HANDLER(get_workspaces) {
     TAILQ_FOREACH(output, &(croot->nodes_head), nodes) {
         Con *child;
         TAILQ_FOREACH(child, &(output->nodes_head), nodes) {
+            if (child->type != CT_CON)
+                continue;
+
             Con *ws;
             TAILQ_FOREACH(ws, &(child->nodes_head), nodes) {
                 assert(ws->type == CT_WORKSPACE);