fix: crash when use focus_cross_tag

This commit is contained in:
DreamMaoMao 2025-10-05 21:31:14 +08:00
parent fa444a52d1
commit df96f252b7

View file

@ -97,9 +97,9 @@ void focusdir(const Arg *arg) {
} else {
if (config.focus_cross_tag) {
if (arg->i == LEFT || arg->i == UP)
viewtoleft_have_client(NULL);
viewtoleft_have_client(&(Arg){0});
if (arg->i == RIGHT || arg->i == DOWN)
viewtoright_have_client(NULL);
viewtoright_have_client(&(Arg){0});
} else if (config.focus_cross_monitor) {
focusmon(arg);
}