X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/5ad2828c579937afc3dc6da9987587e0eb2473dc..81aebf8caeb720406a238e8766bb615c501af15f:/layout.c?ds=sidebyside diff --git a/layout.c b/layout.c index 5bb6e97..bc5ca1c 100644 --- a/layout.c +++ b/layout.c @@ -218,10 +218,8 @@ setlayout(const char *arg) { void togglebar(const char *arg) { - if(bpos == BarOff) { - if((bpos = BARPOS) == BarOff) - bpos = BarTop; - } + if(bpos == BarOff) + bpos = (BARPOS == BarOff) ? BarTop : BARPOS; else bpos = BarOff; updatebarpos();