Bugfix: Correctly open workspaces on additional outputs
This commit is contained in:
parent
6b272fea55
commit
a33d869885
13
src/randr.c
13
src/randr.c
|
@ -306,7 +306,7 @@ void output_init_con(Output *output) {
|
||||||
int c = 0;
|
int c = 0;
|
||||||
bool exists = true;
|
bool exists = true;
|
||||||
while (exists) {
|
while (exists) {
|
||||||
Con *out, *current;
|
Con *out, *current, *child;
|
||||||
|
|
||||||
c++;
|
c++;
|
||||||
|
|
||||||
|
@ -316,11 +316,16 @@ void output_init_con(Output *output) {
|
||||||
exists = false;
|
exists = false;
|
||||||
TAILQ_FOREACH(out, &(croot->nodes_head), nodes) {
|
TAILQ_FOREACH(out, &(croot->nodes_head), nodes) {
|
||||||
TAILQ_FOREACH(current, &(out->nodes_head), nodes) {
|
TAILQ_FOREACH(current, &(out->nodes_head), nodes) {
|
||||||
if (strcasecmp(current->name, ws->name) != 0)
|
if (current->type != CT_CON)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
exists = true;
|
TAILQ_FOREACH(child, &(current->nodes_head), nodes) {
|
||||||
break;
|
if (strcasecmp(child->name, ws->name) != 0)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
exists = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue