Adding the toggletopbar patch ref. #363
parent
3881ad4ad1
commit
10a6640732
@ -0,0 +1,20 @@
|
|||||||
|
void
|
||||||
|
toggletopbar(const Arg *arg)
|
||||||
|
{
|
||||||
|
Bar *bar;
|
||||||
|
Monitor *m = selmon;
|
||||||
|
|
||||||
|
for (bar = m->bar; bar; bar = bar->next)
|
||||||
|
bar->topbar = !bar->topbar;
|
||||||
|
|
||||||
|
if (!m->showbar) {
|
||||||
|
togglebar(NULL);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
updatebarpos(m);
|
||||||
|
|
||||||
|
for (bar = m->bar; bar; bar = bar->next)
|
||||||
|
XMoveResizeWindow(dpy, bar->win, bar->bx, bar->by, bar->bw, bar->bh);
|
||||||
|
arrange(m);
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
static void toggletopbar(const Arg *arg);
|
Loading…
Reference in New Issue