diff options
| author | bakkeby <[email protected]> | 2022-07-05 13:51:27 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2022-07-05 13:51:27 +0200 |
| commit | 20692bea017353bcaf069625bcf3bda6eed4ad51 (patch) | |
| tree | 24dd9c250fe47b08b284599323484c8463e1442e /patch/shiftview.c | |
| parent | 274602fa7a1e629a76d8b2b914e597c772b1add6 (diff) | |
| download | dwm-flexipatch-20692bea017353bcaf069625bcf3bda6eed4ad51.tar.gz dwm-flexipatch-20692bea017353bcaf069625bcf3bda6eed4ad51.zip | |
Refactoring shift functions ref. #270
Diffstat (limited to 'patch/shiftview.c')
| -rw-r--r-- | patch/shiftview.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/patch/shiftview.c b/patch/shiftview.c index efb5674..d3038d6 100644 --- a/patch/shiftview.c +++ b/patch/shiftview.c @@ -1,19 +1,6 @@ void shiftview(const Arg *arg) { - Arg shifted; - #if SCRATCHPADS_PATCH && !RENAMED_SCRATCHPADS_PATCH - unsigned int seltagset = selmon->tagset[selmon->seltags] & ~SPTAGMASK; - #else - unsigned int seltagset = selmon->tagset[selmon->seltags]; - #endif // SCRATCHPADS_PATCH - if (arg->i > 0) // left circular shift - 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 && !RENAMED_SCRATCHPADS_PATCH - shifted.ui &= ~SPTAGMASK; - #endif // SCRATCHPADS_PATCH - + Arg shifted = shift(arg, 0); view(&shifted); } |
