From af6619946fa6b383d312c4df068cf6f9076d7c64 Mon Sep 17 00:00:00 2001 From: estevao Date: Tue, 23 Jul 2024 17:22:17 -0300 Subject: [PATCH] Fixed all-window and first tag conflict in pertag patch --- patches/pertag/pertag.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/pertag/pertag.patch b/patches/pertag/pertag.patch index 50fac90..b31cab4 100644 --- a/patches/pertag/pertag.patch +++ b/patches/pertag/pertag.patch @@ -108,7 +108,7 @@ index bf763df..99e2550 100644 if (!(newtagset = selmon ? selmon->tagset[selmon->seltags] ^ (arg->ui & TAGMASK) : 0)) return; -+ if (newtagset == TAGMASK) { ++ if (newtagset == ~0) { + selmon->pertag->prevtag = selmon->pertag->curtag; + selmon->pertag->curtag = 0; + } @@ -144,7 +144,7 @@ index bf763df..99e2550 100644 selmon->tagset[selmon->seltags] = arg->ui & TAGMASK; + selmon->pertag->prevtag = selmon->pertag->curtag; + -+ if (arg->ui == TAGMASK) ++ if (arg->ui == ~0) + selmon->pertag->curtag = 0; + else { + for (i = 0; !(arg->ui & 1 << i); i++) ;