feat: optimize focusdir to respect focusstack

This commit is contained in:
DreamMaoMao 2026-01-19 10:09:35 +08:00
parent 57d7801df2
commit 48c466254a
4 changed files with 90 additions and 2 deletions

View file

@ -129,6 +129,7 @@ int32_t exchange_stack_client(const Arg *arg) {
int32_t focusdir(const Arg *arg) {
Client *c = NULL;
c = direction_select(arg);
c = get_focused_stack_client(c);
if (c) {
focusclient(c, 1);
if (warpcursor)