summaryrefslogtreecommitdiffhomepage
path: root/patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch')
-rw-r--r--patch/dwmc.c8
-rw-r--r--patch/pertag.c4
2 files changed, 12 insertions, 0 deletions
diff --git a/patch/dwmc.c b/patch/dwmc.c
index 4dedcbc..9c2e863 100644
--- a/patch/dwmc.c
+++ b/patch/dwmc.c
@@ -13,7 +13,11 @@ viewex(const Arg *arg)
void
viewallex(const Arg *arg)
{
+ #if SCRATCHPADS_PATCH
+ view(&((Arg){.ui = ~SPTAGMASK}));
+ #else
view(&((Arg){.ui = ~0}));
+ #endif // SCRATCHPADS_PATCH
}
void
@@ -37,7 +41,11 @@ toggletagex(const Arg *arg)
void
tagallex(const Arg *arg)
{
+ #if SCRATCHPADS_PATCH
+ tag(&((Arg){.ui = ~SPTAGMASK}));
+ #else
tag(&((Arg){.ui = ~0}));
+ #endif // SCRATCHPADS_PATCH
}
int
diff --git a/patch/pertag.c b/patch/pertag.c
index 2889e0e..3ca7ab2 100644
--- a/patch/pertag.c
+++ b/patch/pertag.c
@@ -32,7 +32,11 @@ pertagview(const Arg *arg)
if (arg->ui & TAGMASK) {
selmon->pertag->prevtag = selmon->pertag->curtag;
selmon->tagset[selmon->seltags] = arg->ui & TAGMASK;
+ #if SCRATCHPADS_PATCH
+ if (arg->ui == ~SPTAGMASK)
+ #else
if (arg->ui == ~0)
+ #endif // SCRATCHPADS_PATCH
selmon->pertag->curtag = 0;
else {
for (i = 0; !(arg->ui & 1 << i); i++) ;