about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--draw.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/draw.c b/draw.c
index 614d6d1..3bc8b72 100644
--- a/draw.c
+++ b/draw.c
@@ -114,16 +114,16 @@ drawstatus()
 
 	dc.x = dc.y = 0;
 	dc.w = bw;
-	drawtext(NULL, !istile, False);
+	drawtext(NULL, istile ? 1 : 0, False);
 
 	dc.w = 0;
 	for(i = 0; i < ntags; i++) {
 		dc.x += dc.w;
 		dc.w = textw(tags[i]);
 		if(istile)
-			drawtext(tags[i], seltag[i], sel && sel->tags[i]);
+			drawtext(tags[i], seltag[i] ? 0 : 1, sel && sel->tags[i]);
 		else
-			drawtext(tags[i], !seltag[i], sel && sel->tags[i]);
+			drawtext(tags[i], seltag[i] ? 1 : 0, sel && sel->tags[i]);
 	}
 	x = dc.x + dc.w;
 	dc.w = textw(stext);
@@ -132,11 +132,11 @@ drawstatus()
 		dc.x = x;
 		dc.w = bw - x;
 	}
-	drawtext(stext, !istile, False);
+	drawtext(stext, istile ? 1 : 0, False);
 
 	if(sel && ((dc.w = dc.x - x) > bh)) {
 		dc.x = x;
-		drawtext(sel->name, istile, False);
+		drawtext(sel->name, istile ? 0 : 1, False);
 	}
 	XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, bw, bh, 0, 0);
 	XSync(dpy, False);
@@ -159,7 +159,7 @@ drawtitle(Client *c)
 	XMapWindow(dpy, c->twin);
 	dc.x = dc.y = 0;
 	dc.w = c->tw;
-	drawtext(c->name, !istile, False);
+	drawtext(c->name, istile ? 1 : 0, False);
 	XCopyArea(dpy, dc.drawable, c->twin, dc.gc, 0, 0, c->tw, c->th, 0, 0);
 	XSync(dpy, False);
 }
cc32bb77 ^
da5104f8 ^
8c9f9162 ^

a2726b6a ^


1a6490a5 ^
a2726b6a ^
da5104f8 ^
da5104f8 ^

a2726b6a ^



a84e4ade ^
a2726b6a ^
37742d71 ^
a2726b6a ^
37742d71 ^

da5104f8 ^
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