X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/2aef8b9b4ce0900d241c60cb3a07e111c825d13a..81aebf8caeb720406a238e8766bb615c501af15f:/layout.c diff --git a/layout.c b/layout.c index 0dc062f..bc5ca1c 100644 --- a/layout.c +++ b/layout.c @@ -218,8 +218,12 @@ setlayout(const char *arg) { void togglebar(const char *arg) { - bpos = (bpos == BarOff) ? BARPOS : BarOff; + if(bpos == BarOff) + bpos = (BARPOS == BarOff) ? BarTop : BARPOS; + else + bpos = BarOff; updatebarpos(); + lt->arrange(); } void