Fixed all-window and first tag conflict in pertag patch

This commit is contained in:
estevao 2024-07-23 17:22:17 -03:00
parent 2e74dc1caf
commit af6619946f

View File

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