fix: crash in some case when use global in multi monitor

This commit is contained in:
DreamMaoMao 2025-09-22 12:03:05 +08:00
parent cddbbd8bd6
commit fc38d4b278

View file

@ -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);
}