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