mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 12:05:45 +00:00
21 lines
344 B
C
21 lines
344 B
C
|
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);
|
||
|
}
|