Bugfix: in get_workspaces, only consider the CT_CON, not the CT_DOCKAREAs (Thanks fernandotcl)
This commit is contained in:
parent
272ab840c7
commit
6b272fea55
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue