2020-09-09 15:24:02 +00:00
|
|
|
#if IPC_PATCH || DWMC_PATCH
|
2020-06-21 07:07:51 +00:00
|
|
|
void
|
|
|
|
tagnextmonex(const Arg *arg)
|
|
|
|
{
|
|
|
|
tagnextmon(&((Arg) { .ui = 1 << arg->ui }));
|
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
tagprevmonex(const Arg *arg)
|
|
|
|
{
|
|
|
|
tagprevmon(&((Arg) { .ui = 1 << arg->ui }));
|
|
|
|
}
|
2020-09-09 15:24:02 +00:00
|
|
|
#endif // IPC_PATCH | DWMC_PATCH
|
2020-06-21 07:07:51 +00:00
|
|
|
|
2020-06-19 21:18:50 +00:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|
2021-06-14 05:16:17 +00:00
|
|
|
|