feat: support the repeated exchange of the same two clients

This commit is contained in:
DreamMaoMao 2026-03-06 14:17:26 +08:00
parent 6522e18d08
commit 11b4bb03bf
2 changed files with 8 additions and 1 deletions

View file

@ -110,7 +110,9 @@ int32_t exchange_client(const Arg *arg) {
if ((c->isfullscreen || c->ismaximizescreen) && !is_scroller_layout(c->mon))
return 0;
exchange_two_client(c, direction_select(arg));
Client *tc = direction_select(arg);
tc = get_focused_stack_client(tc);
exchange_two_client(c, tc);
return 0;
}