opt: fix tagsel toggle

This commit is contained in:
DreamMaoMao 2025-08-29 18:49:01 +08:00
parent 04f1d97733
commit 1f77e58baf
2 changed files with 16 additions and 5 deletions

View file

@ -18,7 +18,7 @@ void bind_to_view(const Arg *arg) {
}
if (target == 0 || (int)target == INT_MIN) {
view(&(Arg){.ui = ~0}, false);
view(&(Arg){.ui = ~0 & TAGMASK}, false);
} else {
view(&(Arg){.ui = target}, true);
}