summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDouglas Rumbaugh <doug@douglasrumbaugh.com>2022-01-12 14:24:44 -0500
committerDouglas Rumbaugh <doug@douglasrumbaugh.com>2022-01-12 14:24:44 -0500
commit60da42738a44896956b4cb31a00e686e40e11fc3 (patch)
treef9057e3bc90e186ef84b8fc4b91957aab42320f7
parente0a94b7b8a820968bd6b82ca510c529b878c158d (diff)
downloaddwm-60da42738a44896956b4cb31a00e686e40e11fc3.tar.gz
Scratchpads no longer show while viewing all tags
Probably not the best way to do this, but it was the most straightforward. When viewing all tags, I manually unset all the scratchpad tags by ^= the monitor's tagset with SPTAGMASK.
-rw-r--r--dwm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dwm.c b/dwm.c
index 2c45858..e592be9 100644
--- a/dwm.c
+++ b/dwm.c
@@ -2451,8 +2451,10 @@ view(const Arg *arg)
selmon->tagset[selmon->seltags] = arg->ui & TAGMASK;
selmon->pertag->prevtag = selmon->pertag->curtag;
- if (arg->ui == ~0)
+ if (arg->ui == ~0) {
selmon->pertag->curtag = 0;
+ selmon->tagset[selmon->seltags] ^= SPTAGMASK;
+ }
else {
for (i = 0; !(arg->ui & 1 << i); i++) ;
selmon->pertag->curtag = i + 1;