about summary refs log tree commit diff stats
path: root/layout.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-05-15 14:06:18 +0200
committerAnselm R. Garbe <arg@suckless.org>2007-05-15 14:06:18 +0200
commit1e826ddd3ee0159bf2bd296a24e557b0d971ed91 (patch)
treee30efceaf9593696e6b8b071f4cd3d21dc674af4 /layout.c
parenta967d7f66447b1b3023cdb4b5a10fca2cfb23b05 (diff)
downloaddwm-1e826ddd3ee0159bf2bd296a24e557b0d971ed91.tar.gz
simplification
Diffstat (limited to 'layout.c')
-rw-r--r--layout.c6
1 files 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();