mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-10-29 05:40:21 -04:00
fix: crash when use no_border_when_single
This commit is contained in:
parent
36eb95f138
commit
7df6c5c419
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue