diff options
| author | bakkeby <[email protected]> | 2020-09-28 17:48:49 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2020-09-28 17:48:49 +0200 |
| commit | 795fcc3b51ad2ca84736d7931437e9cffe086832 (patch) | |
| tree | ba8b40d13a4df43e5d2e0ea351f5b87301385970 /patch | |
| parent | 8726ae0aa94f711887cd25bc8c159f8027d59839 (diff) | |
| download | dwm-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')
| -rw-r--r-- | patch/dwmc.c | 8 | ||||
| -rw-r--r-- | patch/pertag.c | 4 |
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++) ; |
