mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
15 lines
393 B
C
15 lines
393 B
C
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);
|
|
} |