opt: optimize swallow in ipc action

This commit is contained in:
DreamMaoMao 2026-06-29 12:07:45 +08:00
parent bffa140a78
commit aa56df474f
8 changed files with 43 additions and 30 deletions

View file

@ -2197,6 +2197,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;
}