From 8799f383ce4ed0b15d04173fe11ec26651554c06 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Sun, 5 Oct 2025 21:31:14 +0800 Subject: [PATCH] fix: crash when use focus_cross_tag --- src/dispatch/bind_define.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dispatch/bind_define.h b/src/dispatch/bind_define.h index 24edb52..132d66d 100644 --- a/src/dispatch/bind_define.h +++ b/src/dispatch/bind_define.h @@ -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); }