dwm

Kris's build of dwm
git clone git clone https://git.krisyotam.com/krisyotam/dwm.git
Log | Files | Refs | README | LICENSE

toggletopbar.c (344B)


      1 void
      2 toggletopbar(const Arg *arg)
      3 {
      4 	Bar *bar;
      5 	Monitor *m = selmon;
      6 
      7 	for (bar = m->bar; bar; bar = bar->next)
      8 		bar->topbar = !bar->topbar;
      9 
     10 	if (!m->showbar) {
     11 		togglebar(NULL);
     12 		return;
     13 	}
     14 
     15 	updatebarpos(m);
     16 
     17 	for (bar = m->bar; bar; bar = bar->next)
     18 		XMoveResizeWindow(dpy, bar->win, bar->bx, bar->by, bar->bw, bar->bh);
     19 	arrange(m);
     20 }