feature(focusdir): if no client and focus_cross_monitor, focus monitor

This commit is contained in:
Alessio Molinari 2025-09-20 11:31:15 +02:00 committed by DreamMaoMao
parent 85f185c9a1
commit a45b4cf55e

View file

@ -86,6 +86,8 @@ void focusdir(const Arg *arg) {
viewtoleft_have_client(NULL); viewtoleft_have_client(NULL);
if (arg->i == RIGHT || arg->i == DOWN) if (arg->i == RIGHT || arg->i == DOWN)
viewtoright_have_client(NULL); viewtoright_have_client(NULL);
} else if (config.focus_cross_monitor) {
focusmon(arg);
} }
} }
} }