feat: support option focus_cross_tag

This commit is contained in:
chenyc 2025-04-07 12:39:36 +08:00
parent a2d216300e
commit f0afd9b61b
3 changed files with 13 additions and 0 deletions

View file

@ -1906,6 +1906,13 @@ void focusdir(const Arg *arg) {
focusclient(c, 1);
if (warpcursor)
warp_cursor(c);
} else {
if (config.focus_cross_tag) {
if (arg->i == LEFT || arg->i == UP)
viewtoleft_have_client(NULL);
if (arg->i == RIGHT || arg->i == DOWN)
viewtoright_have_client(NULL);
}
}
}