Set arg.i = UNDIR so that focusmon uses arg.v to select monitor

This commit is contained in:
reDpz 2025-10-29 14:41:29 +00:00
parent 9b5ea50095
commit 718ed47dfc

View file

@ -1423,7 +1423,7 @@ int viewtoright_have_client(const Arg *arg) {
}
int viewcrossmon(const Arg *arg) {
focusmon(arg);
focusmon(&(Arg){.v = arg->v, .i = UNDIR});
view_in_mon(arg, true, selmon, true);
return 0;
}