fix: crash when use no_border_when_single

This commit is contained in:
DreamMaoMao 2025-06-01 10:25:24 +08:00
parent 36eb95f138
commit 7df6c5c419

View file

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