aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2024-07-07 18:54:30 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2024-07-07 18:54:30 +0530
commite36173456fbdea12375793cf692a2bda578f80b2 (patch)
tree966863eec71282f9ac0fe91ab1cddf1e6be99484
parentdde1d66ddc3236d076858736fb6faaf06a3c7d8c (diff)
fixt
-rw-r--r--dwl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dwl.c b/dwl.c
index 03c22a1..261b8be 100644
--- a/dwl.c
+++ b/dwl.c
@@ -2802,7 +2802,7 @@ toggleview(const Arg *arg)
if (!(newtagset = selmon ? selmon->tagset[selmon->seltags] ^ (arg->ui & TAGMASK) : 0))
return;
- if (newtagset == ~0) {
+ if (newtagset == TAGMASK) {
selmon->pertag->prevtag = selmon->pertag->curtag;
selmon->pertag->curtag = 0;
}
@@ -3018,7 +3018,7 @@ view(const Arg *arg)
selmon->tagset[selmon->seltags] = arg->ui & TAGMASK;
selmon->pertag->prevtag = selmon->pertag->curtag;
- if (arg->ui == ~0)
+ if (arg->ui == TAGMASK)
selmon->pertag->curtag = 0;
else {
for (i = 0; !(arg->ui & 1 << i); i++) ;