From 1e826ddd3ee0159bf2bd296a24e557b0d971ed91 Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Tue, 15 May 2007 14:06:18 +0200 Subject: simplification --- layout.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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(); -- cgit 1.4.1-2-gfad0