diff options
| author | bakkeby <[email protected]> | 2020-06-05 11:24:07 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2020-06-05 11:24:07 +0200 |
| commit | a713e73a37d6374abd3556c3345eb8c6f88c0d69 (patch) | |
| tree | 1d3a1cba2c58d3eb1c7a0a4aed075d175ebcfc48 | |
| parent | 6321b52a302dded8224390a81bb60a7073bec2f3 (diff) | |
| download | dwm-flexipatch-a713e73a37d6374abd3556c3345eb8c6f88c0d69.tar.gz dwm-flexipatch-a713e73a37d6374abd3556c3345eb8c6f88c0d69.zip | |
shiftviewclients: compatibility changes for scratchpads and scratchpad_alt_1 patches
| -rw-r--r-- | patch/shiftviewclients.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/patch/shiftviewclients.c b/patch/shiftviewclients.c index c3122b0..5148c11 100644 --- a/patch/shiftviewclients.c +++ b/patch/shiftviewclients.c @@ -6,7 +6,15 @@ shiftviewclients(const Arg *arg) unsigned int tagmask = 0; for (c = selmon->clients; c; c = c->next) + #if SCRATCHPADS_PATCH + if (!(c->tags & SPTAGMASK)) + tagmask = tagmask | c->tags; + #elif SCRATCHPAD_ALT_1_PATCH + if (!(c->tags & SCRATCHPAD_MASK)) + tagmask = tagmask | c->tags; + #else tagmask = tagmask | c->tags; + #endif // SCRATCHPADS_PATCH shifted.ui = selmon->tagset[selmon->seltags]; if (arg->i > 0) // left circular shift |
