opt: simplified group code

This commit is contained in:
DreamMaoMao 2026-07-01 07:45:33 +08:00
parent 0cafd91c72
commit 88d32bdf8f
3 changed files with 33 additions and 68 deletions

View file

@ -231,17 +231,8 @@ int32_t groupleave(const Arg *arg) {
Client *rc = tc->group_next ? tc->group_next : tc->group_prev;
client_focus_group_member(rc);
client_group_detach(tc);
if (tc->group_prev) {
tc->group_prev->group_next = tc->group_next;
}
if (tc->group_next) {
tc->group_next->group_prev = tc->group_prev;
}
tc->group_prev = NULL;
tc->group_next = NULL;
tc->isgroupfocusing = false;
tc->is_logic_hide = false;