From: Michael Stapelberg Date: Sun, 20 Feb 2011 23:54:29 +0000 (+0100) Subject: Bugfix: in get_workspaces, only consider the CT_CON, not the CT_DOCKAREAs (Thanks... X-Git-Tag: tree-pr2~42 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6b272fea556b9b0f750b34980325f2ccf786863b;p=i3%2Fi3 Bugfix: in get_workspaces, only consider the CT_CON, not the CT_DOCKAREAs (Thanks fernandotcl) --- diff --git a/src/ipc.c b/src/ipc.c index fe1b24a8..b80eae12 100644 --- 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);