mirror of
https://github.com/bakkeby/dwm-flexipatch
synced 2024-11-16 21:28:03 +00:00
16 lines
395 B
C
16 lines
395 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);
|
|
}
|