summaryrefslogtreecommitdiffhomepage
path: root/patch
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2020-10-29 14:23:58 +0100
committerbakkeby <[email protected]>2020-10-29 14:23:58 +0100
commit7bfcd388f6d2a45d5753a909a5a8c2cf91529194 (patch)
tree9cd2c88e2965db631ddd42c7bde2f57526431a8e /patch
parent45d05c6c48485ff0cf1339cd6edb29dec2984c6a (diff)
downloaddwm-flexipatch-7bfcd388f6d2a45d5753a909a5a8c2cf91529194.tar.gz
dwm-flexipatch-7bfcd388f6d2a45d5753a909a5a8c2cf91529194.zip
shiftviewclients: fix for another scratchpads edge case ref. https://github.com/bakkeby/patches/issues/12
Diffstat (limited to 'patch')
-rw-r--r--patch/shiftviewclients.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/patch/shiftviewclients.c b/patch/shiftviewclients.c
index fb0da48..04378ef 100644
--- a/patch/shiftviewclients.c
+++ b/patch/shiftviewclients.c
@@ -25,11 +25,17 @@ shiftviewclients(const Arg *arg)
do {
shifted.ui = (shifted.ui << arg->i)
| (shifted.ui >> (NUMTAGS - arg->i));
+ #if SCRATCHPADS_PATCH
+ shifted.ui &= ~SPTAGMASK;
+ #endif // SCRATCHPADS_PATCH
} while (tagmask && !(shifted.ui & tagmask));
else // right circular shift
do {
shifted.ui = (shifted.ui >> (- arg->i)
| shifted.ui << (NUMTAGS + arg->i));
+ #if SCRATCHPADS_PATCH
+ shifted.ui &= ~SPTAGMASK;
+ #endif // SCRATCHPADS_PATCH
} while (tagmask && !(shifted.ui & tagmask));
view(&shifted);