X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=layout.c;h=5bb6e97348593facf5473ca4737575298580a7a2;hb=5ad2828c579937afc3dc6da9987587e0eb2473dc;hp=26e9de6cba1e1d2e340a79d8a11956932684a53d;hpb=b896b58d6dbdfc98c0099bd7276e4989527160c6;p=dwm.git diff --git a/layout.c b/layout.c index 26e9de6..5bb6e97 100644 --- a/layout.c +++ b/layout.c @@ -218,7 +218,12 @@ 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(); }