X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=layout.c;h=bc5ca1c0df3a5af198e98e79f3a3162805014e2f;hb=1e826ddd3ee0159bf2bd296a24e557b0d971ed91;hp=5bb6e97348593facf5473ca4737575298580a7a2;hpb=a967d7f66447b1b3023cdb4b5a10fca2cfb23b05;p=dwm.git diff --git a/layout.c b/layout.c index 5bb6e97..bc5ca1c 100644 --- a/layout.c +++ b/layout.c @@ -218,10 +218,8 @@ setlayout(const char *arg) { void togglebar(const char *arg) { - if(bpos == BarOff) { - if((bpos = BARPOS) == BarOff) - bpos = BarTop; - } + if(bpos == BarOff) + bpos = (BARPOS == BarOff) ? BarTop : BARPOS; else bpos = BarOff; updatebarpos();