mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 12:05:45 +00:00
30 lines
406 B
C
30 lines
406 B
C
void
|
|
tagnextmon(const Arg *arg)
|
|
{
|
|
tagothermon(arg, 1);
|
|
}
|
|
|
|
void
|
|
tagprevmon(const Arg *arg)
|
|
{
|
|
tagothermon(arg, -1);
|
|
}
|
|
|
|
void
|
|
tagothermon(const Arg *arg, int dir)
|
|
{
|
|
Client *sel;
|
|
Monitor *newmon;
|
|
|
|
if (!selmon->sel || !mons->next)
|
|
return;
|
|
sel = selmon->sel;
|
|
newmon = dirtomon(dir);
|
|
sendmon(sel, newmon);
|
|
if (arg->ui & TAGMASK) {
|
|
sel->tags = arg->ui & TAGMASK;
|
|
focus(NULL);
|
|
arrange(newmon);
|
|
}
|
|
}
|