diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-07-08 15:51:18 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-07-08 15:51:18 +0200 |
commit | cf8aefdf23c53cb3f83428269aa74b6eb47657fd (patch) | |
tree | afdf0bab9b6aa5943c389e1b2efbd310cfde456e /patches/shiftview.c | |
parent | 17f1d5e7a654c6a70cc08e8c5e1e8c11ee415bac (diff) |
Latest update
Diffstat (limited to 'patches/shiftview.c')
-rw-r--r-- | patches/shiftview.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/patches/shiftview.c b/patches/shiftview.c deleted file mode 100644 index e82053a..0000000 --- a/patches/shiftview.c +++ /dev/null @@ -1,19 +0,0 @@ -/** Function to shift the current view to the left/right - * - * @param: "arg->i" stores the number of tags to shift right (positive value) - * or left (negative value) - */ -void -shiftview(const Arg *arg) { - Arg shifted; - - if(arg->i > 0) // left circular shift - shifted.ui = (selmon->tagset[selmon->seltags] << arg->i) - | (selmon->tagset[selmon->seltags] >> (LENGTH(tags) - arg->i)); - - else // right circular shift - shifted.ui = selmon->tagset[selmon->seltags] >> (- arg->i) - | selmon->tagset[selmon->seltags] << (LENGTH(tags) + arg->i); - - view(&shifted); -} |