summaryrefslogtreecommitdiffhomepage
path: root/patch
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2020-10-04 11:36:51 +0200
committerbakkeby <[email protected]>2020-10-04 11:36:51 +0200
commit3b5f3f66cebb410720eb137c2178889e43a1fd0a (patch)
tree5eefd8cd0874b858d9f485a58fbfc6cb478f01c8 /patch
parent5132e3a289101de2f9f031d5b405ef32724ea4a9 (diff)
downloaddwm-flexipatch-3b5f3f66cebb410720eb137c2178889e43a1fd0a.tar.gz
dwm-flexipatch-3b5f3f66cebb410720eb137c2178889e43a1fd0a.zip
shiftviewclients: fixed bug when scratchpad is enabled
Diffstat (limited to 'patch')
-rw-r--r--patch/shiftviewclients.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/patch/shiftviewclients.c b/patch/shiftviewclients.c
index a0b2e81..fb0da48 100644
--- a/patch/shiftviewclients.c
+++ b/patch/shiftviewclients.c
@@ -16,7 +16,11 @@ shiftviewclients(const Arg *arg)
tagmask = tagmask | c->tags;
#endif // SCRATCHPADS_PATCH
+ #if SCRATCHPADS_PATCH
+ shifted.ui = selmon->tagset[selmon->seltags] & ~SPTAGMASK;
+ #else
shifted.ui = selmon->tagset[selmon->seltags];
+ #endif // SCRATCHPADS_PATCH
if (arg->i > 0) // left circular shift
do {
shifted.ui = (shifted.ui << arg->i)