fix: fix group cross monitor

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

View file

@ -2761,8 +2761,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') {