diff options
Diffstat (limited to 'patch/shiftboth.c')
| -rw-r--r-- | patch/shiftboth.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/patch/shiftboth.c b/patch/shiftboth.c index 5c7c916..d51d4ac 100644 --- a/patch/shiftboth.c +++ b/patch/shiftboth.c @@ -1,21 +1,7 @@ void shiftboth(const Arg *arg) { - Arg shifted; - #if SCRATCHPADS_PATCH && !RENAMED_SCRATCHPADS_PATCH - shifted.ui = selmon->tagset[selmon->seltags]; - #else - shifted.ui = selmon->tagset[selmon->seltags]; - #endif // SCRATCHPADS_PATCH - - if (arg->i > 0) /* left circular shift */ - shifted.ui = ((shifted.ui << arg->i) | (shifted.ui >> (NUMTAGS - arg->i))); - else /* right circular shift */ - shifted.ui = ((shifted.ui >> -arg->i) | (shifted.ui << (NUMTAGS + arg->i))); - #if SCRATCHPADS_PATCH && !RENAMED_SCRATCHPADS_PATCH - shifted.ui &= ~SPTAGMASK; - #endif // SCRATCHPADS_PATCH - + Arg shifted = shift(arg, 0); tag(&shifted); view(&shifted); } |
