blob: c4494dc07179ad1e77a9f0d67f63f2bb20789f04 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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] >> (NUMTAGS - arg->i));
else // right circular shift
shifted.ui = selmon->tagset[selmon->seltags] >> (- arg->i)
| selmon->tagset[selmon->seltags] << (NUMTAGS + arg->i);
view(&shifted);
}
|