opt: optimize swallow in ipc action

This commit is contained in:
DreamMaoMao 2026-06-29 12:07:45 +08:00
parent 76de8206dd
commit e914d76acd
8 changed files with 55 additions and 36 deletions

View file

@ -2196,6 +2196,13 @@ int32_t focusid(const Arg *arg) {
return 0;
Client *c = arg->tc;
if (c->swallowdby)
return 0;
if (c->group_next || c->group_prev)
client_focus_group_member(c);
client_active(c);
return 0;
}