summaryrefslogtreecommitdiffhomepage
path: root/patch/dwmc.c
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2020-09-28 17:48:49 +0200
committerbakkeby <[email protected]>2020-09-28 17:48:49 +0200
commit795fcc3b51ad2ca84736d7931437e9cffe086832 (patch)
treeba8b40d13a4df43e5d2e0ea351f5b87301385970 /patch/dwmc.c
parent8726ae0aa94f711887cd25bc8c159f8027d59839 (diff)
downloaddwm-flexipatch-795fcc3b51ad2ca84736d7931437e9cffe086832.tar.gz
dwm-flexipatch-795fcc3b51ad2ca84736d7931437e9cffe086832.zip
scratchpads: when the scratchpad patch is added, the tagmask is altered, so to get a window onto all tags you have to do ~SPTAGSMASK instead of ~0 as otherwise it will interfere with the scratchpads, ref. #53
Diffstat (limited to 'patch/dwmc.c')
-rw-r--r--patch/dwmc.c8
1 files changed, 8 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