X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=layout.c;h=5bb6e97348593facf5473ca4737575298580a7a2;hb=8f5f7a5b5a40ee535305927dd12ba83891d1b0b1;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(); }