mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-07-05 00:06:20 -04:00
opt: simplified group code
This commit is contained in:
parent
0cafd91c72
commit
88d32bdf8f
3 changed files with 33 additions and 68 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue