X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=layout.c;h=bc5ca1c0df3a5af198e98e79f3a3162805014e2f;hb=81aebf8caeb720406a238e8766bb615c501af15f;hp=26e9de6cba1e1d2e340a79d8a11956932684a53d;hpb=37e062b0ed475fb6d9030f05b353c4fb79b7c6e5;p=dwm.git diff --git a/layout.c b/layout.c index 26e9de6..bc5ca1c 100644 --- a/layout.c +++ b/layout.c @@ -218,7 +218,10 @@ 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(); }