From 3b5f3f66cebb410720eb137c2178889e43a1fd0a Mon Sep 17 00:00:00 2001 From: bakkeby Date: Sun, 4 Oct 2020 11:36:51 +0200 Subject: [PATCH] shiftviewclients: fixed bug when scratchpad is enabled --- patch/shiftviewclients.c | 4 ++++ 1 file changed, 4 insertions(+) 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)