about summary refs log tree commit diff stats
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
parenta967d7f66447b1b3023cdb4b5a10fca2cfb23b05 (diff)
downloaddwm-1e826ddd3ee0159bf2bd296a24e557b0d971ed91.tar.gz
simplification
-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();
e the previous revision' href='/acidbong/suckless/dwm/blame/Makefile?h=5.7&id=605630c14522759a0a7521d3d74ee2340591147f'>^
650a1fb ^
dbf7e03 ^



1076f2b



42277b1 ^
5d3fd37 ^
a2d56f6 ^
99b126d ^

1076f2b
650a1fb ^
3d48f33 ^

82064af ^
1076f2b

4d55eee ^
db876f9 ^
dbf7e03 ^

4d55eee ^






dbf7e03 ^

4d55eee ^
dbf7e03 ^
4d55eee ^


dbf7e03 ^
ad4962c ^
4d55eee ^
dbf7e03 ^

4d55eee ^



dc5c070 ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61