From 7df6c5c4194e2c90b0117f105519680eb92700bc Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Sun, 1 Jun 2025 10:25:24 +0800 Subject: [PATCH] fix: crash when use no_border_when_single --- src/maomao.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/maomao.c b/src/maomao.c index 1c7f563..c5c7e07 100644 --- a/src/maomao.c +++ b/src/maomao.c @@ -1077,7 +1077,7 @@ bool check_hit_no_border(Client *c) { } } - if (no_border_when_single && c->mon->visible_clients == 1) { + if (no_border_when_single && c && c->mon && c->mon->visible_clients == 1) { hit_no_border = true; } return hit_no_border;