X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=layout.c;h=5bb6e97348593facf5473ca4737575298580a7a2;hb=ce450c5bf16f7e86803fe7f5d41b0d1f9bdf3e52;hp=0dc062f1a59bcb50041b60e7a906a0ad8f2f8a27;hpb=2aef8b9b4ce0900d241c60cb3a07e111c825d13a;p=dwm.git diff --git a/layout.c b/layout.c index 0dc062f..5bb6e97 100644 --- a/layout.c +++ b/layout.c @@ -218,8 +218,14 @@ 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(); } void