X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=layout.c;h=5bb6e97348593facf5473ca4737575298580a7a2;hb=ce450c5bf16f7e86803fe7f5d41b0d1f9bdf3e52;hp=26e9de6cba1e1d2e340a79d8a11956932684a53d;hpb=37e062b0ed475fb6d9030f05b353c4fb79b7c6e5;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(); }