diff options
| author | Raghuram Subramani <raghus2247@gmail.com> | 2024-07-07 18:54:30 +0530 |
|---|---|---|
| committer | Raghuram Subramani <raghus2247@gmail.com> | 2024-07-07 18:54:30 +0530 |
| commit | e36173456fbdea12375793cf692a2bda578f80b2 (patch) | |
| tree | 966863eec71282f9ac0fe91ab1cddf1e6be99484 | |
| parent | dde1d66ddc3236d076858736fb6faaf06a3c7d8c (diff) | |
fixt
| -rw-r--r-- | dwl.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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++) ; |
