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++) ;