Adding tagothermonitor patch
parent
5e0a9c49f8
commit
6aca089661
@ -0,0 +1,29 @@
|
|||||||
|
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);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,3 @@
|
|||||||
|
static void tagnextmon(const Arg *arg);
|
||||||
|
static void tagprevmon(const Arg *arg);
|
||||||
|
static void tagothermon(const Arg *arg, int dir);
|
Loading…
Reference in New Issue