summaryrefslogtreecommitdiffhomepage
path: root/patch/shiftview.c
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2022-06-20 14:00:09 +0200
committerbakkeby <[email protected]>2022-06-20 14:00:09 +0200
commit2f70c42aab2ac71f5cdb1996499247f2268c98ce (patch)
treedaa286e6af9ea7ea0abb8ff77a62182759ce6a67 /patch/shiftview.c
parentd7456b235a0eb549c752d0cf06198fd29264e21a (diff)
downloaddwm-flexipatch-2f70c42aab2ac71f5cdb1996499247f2268c98ce.tar.gz
dwm-flexipatch-2f70c42aab2ac71f5cdb1996499247f2268c98ce.zip
Adding renamed scratchpads patch
Diffstat (limited to 'patch/shiftview.c')
-rw-r--r--patch/shiftview.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/patch/shiftview.c b/patch/shiftview.c
index b9c811a..efb5674 100644
--- a/patch/shiftview.c
+++ b/patch/shiftview.c
@@ -2,7 +2,7 @@ void
shiftview(const Arg *arg)
{
Arg shifted;
- #if SCRATCHPADS_PATCH
+ #if SCRATCHPADS_PATCH && !RENAMED_SCRATCHPADS_PATCH
unsigned int seltagset = selmon->tagset[selmon->seltags] & ~SPTAGMASK;
#else
unsigned int seltagset = selmon->tagset[selmon->seltags];
@@ -11,7 +11,7 @@ shiftview(const Arg *arg)
shifted.ui = (seltagset << arg->i) | (seltagset >> (NUMTAGS - arg->i));
else // right circular shift
shifted.ui = (seltagset >> -arg->i) | (seltagset << (NUMTAGS + arg->i));
- #if SCRATCHPADS_PATCH
+ #if SCRATCHPADS_PATCH && !RENAMED_SCRATCHPADS_PATCH
shifted.ui &= ~SPTAGMASK;
#endif // SCRATCHPADS_PATCH