From 7a951f746e9e1a18750522b1c474b7517c546286 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Mon, 22 Sep 2025 12:03:05 +0800 Subject: [PATCH] fix: crash in some case when use global in multi monitor --- src/mango.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mango.c b/src/mango.c index a7999a1..4fb5250 100644 --- a/src/mango.c +++ b/src/mango.c @@ -1295,7 +1295,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); }