mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-06 06:46:54 -04:00
feat: focusdir now moves the viewport too, making it center the new focused window
This commit is contained in:
parent
1e217af3d9
commit
3045ef3095
3 changed files with 31 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue