diff --git a/src/mango.c b/src/mango.c index 8d4c893..9d4264c 100644 --- a/src/mango.c +++ b/src/mango.c @@ -1286,7 +1286,7 @@ arrange(Monitor *m, bool want_animation) { if (c->mon == m && (c->isglobal || c->isunglobal)) { c->tags = m->tagset[m->seltags]; - if (selmon->sel == NULL) + if (c->mon->sel == NULL) focusclient(c, 0); }