From 3548e23e32dbe7981d7c724a333676c262bc1ad5 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Tue, 9 Sep 2025 17:42:43 +0800 Subject: [PATCH] opt: optimize auto_back_tag toggle logic --- src/dispatch/bind_define.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dispatch/bind_define.h b/src/dispatch/bind_define.h index e7611de..e97ab41 100644 --- a/src/dispatch/bind_define.h +++ b/src/dispatch/bind_define.h @@ -3,7 +3,7 @@ void bind_to_view(const Arg *arg) { unsigned int target = arg->ui; if (selmon->pertag->curtag && - target == (1 << (selmon->pertag->curtag - 1))) { + (target & TAGMASK) == (selmon->tagset[selmon->seltags])) { if (selmon->pertag->prevtag) target = 1 << (selmon->pertag->prevtag - 1); else