X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/ab3d6a7dfe76d9857f2fc621034359a2a0bf09df..598e22907e6a3bcfbc35f913dae24d031d6f9170:/layout.c diff --git a/layout.c b/layout.c index 04835a8..0f17b69 100644 --- a/layout.c +++ b/layout.c @@ -189,6 +189,7 @@ restack(void) { XLowerWindow(dpy, c->win); } } + XRaiseWindow(dpy, barwin); XSync(dpy, False); while(XCheckMaskEvent(dpy, EnterWindowMask, &ev)); } @@ -216,6 +217,16 @@ setlayout(const char *arg) { drawstatus(); } +void +togglebar(const char *arg) { + if(bpos == BarOff) + bpos = (BARPOS == BarOff) ? BarTop : BARPOS; + else + bpos = BarOff; + updatebarpos(); + lt->arrange(); +} + void togglemax(const char *arg) { XEvent ev;