From: Anselm R. Garbe Date: Tue, 15 May 2007 12:06:18 +0000 (+0200) Subject: simplification X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=commitdiff_plain;h=1e826ddd3ee0159bf2bd296a24e557b0d971ed91 simplification --- 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();