Bugfix: in get_workspaces, only consider the CT_CON, not the CT_DOCKAREAs (Thanks fernandotcl)

This commit is contained in:
Michael Stapelberg 2011-02-21 00:54:29 +01:00
parent 272ab840c7
commit 6b272fea55
1 changed files with 3 additions and 0 deletions

View File

@ -290,6 +290,9 @@ IPC_HANDLER(get_workspaces) {
TAILQ_FOREACH(output, &(croot->nodes_head), nodes) { TAILQ_FOREACH(output, &(croot->nodes_head), nodes) {
Con *child; Con *child;
TAILQ_FOREACH(child, &(output->nodes_head), nodes) { TAILQ_FOREACH(child, &(output->nodes_head), nodes) {
if (child->type != CT_CON)
continue;
Con *ws; Con *ws;
TAILQ_FOREACH(ws, &(child->nodes_head), nodes) { TAILQ_FOREACH(ws, &(child->nodes_head), nodes) {
assert(ws->type == CT_WORKSPACE); assert(ws->type == CT_WORKSPACE);