fix: fix group cross monitor

This commit is contained in:
DreamMaoMao 2026-06-22 20:58:10 +08:00
parent e1c1bf77a7
commit c385106370
3 changed files with 59 additions and 32 deletions

View file

@ -2772,8 +2772,10 @@ void closemon(Monitor *m) {
}
c->mon = NULL;
client_set_group_mon(c, NULL);
} else {
client_change_mon(c, selmon);
client_set_group_mon(c, selmon);
}
// record the oldmonname which is used to restore
if (c->oldmonname[0] == '\0') {