feat: focusdir now moves the viewport too, making it center the new focused window

This commit is contained in:
ernestoCruz05 2026-03-28 17:34:02 +00:00
parent 1e217af3d9
commit 3045ef3095
3 changed files with 31 additions and 0 deletions

View file

@ -142,6 +142,8 @@ int32_t focusdir(const Arg *arg) {
focusclient(c, 1);
if (config.warpcursor)
warp_cursor(c);
if (selmon && is_canvas_layout(selmon))
canvas_pan_to_client(selmon, c);
} else {
if (config.focus_cross_tag) {
if (arg->i == LEFT || arg->i == UP)