diff options
Diffstat (limited to 'patch/shifttag.c')
| -rw-r--r-- | patch/shifttag.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/patch/shifttag.c b/patch/shifttag.c index 97365f1..0f9dcea 100644 --- a/patch/shifttag.c +++ b/patch/shifttag.c @@ -2,19 +2,6 @@ void shifttag(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); } |
