You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
393 B
C
15 lines
393 B
C
5 years ago
|
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);
|
||
|
}
|