From 6b272fea556b9b0f750b34980325f2ccf786863b Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 21 Feb 2011 00:54:29 +0100 Subject: [PATCH] Bugfix: in get_workspaces, only consider the CT_CON, not the CT_DOCKAREAs (Thanks fernandotcl) --- src/ipc.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.39.5