about summary refs log tree commit diff stats
path: root/draw.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@10kloc.org>2006-08-23 11:33:50 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-08-23 11:33:50 +0200
commit3e972ec84d03b71b032aada7a1c14987baea0830 (patch)
tree9740c40d9566df2df8d351587fb2147a0af6f804 /draw.c
parentb5159dfd2f552696b049b95e0d368a2c33a1002a (diff)
downloaddwm-3e972ec84d03b71b032aada7a1c14987baea0830.tar.gz
tags appear in the left again
Diffstat (limited to 'draw.c')
-rw-r--r--draw.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/draw.c b/draw.c
index 2ccaf6a..c7ef7f5 100644
--- a/draw.c
+++ b/draw.c
@@ -149,17 +149,17 @@ drawtitle(Client *c)
 	XSetWindowBorder(dpy, c->win, dc.bg);
 	XMapWindow(dpy, c->title);
 
-	dc.y = dc.w = 0;
-	dc.x = c->tw;
+	dc.x = dc.y = 0;
+	dc.w = 0;
 	for(i = 0; i < ntags; i++) {
 		if(c->tags[i]) {
+			dc.x += dc.w;
 			dc.w = textw(tags[i]);
-			dc.x -= dc.w;
 			drawtext(tags[i], !istile);
 		}
 	}
-	dc.w = dc.x;
-	dc.x = 0;
+	dc.x += dc.w;
+	dc.w = c->tw - dc.x;
 	drawtext(c->name, !istile);
 	XCopyArea(dpy, dc.drawable, c->title, dc.gc, 0, 0, c->tw, c->th, 0, 0);
 	XSync(dpy, False);
='oid'>2fd6b1a ^
6753171 ^
a6c8162 ^

e10fc64 ^




5e92b61 ^
a6c8162 ^
5e92b61 ^
c050730 ^
e10fc64 ^
6753171 ^
c050730 ^

e10fc64 ^

7f76158 ^
e10fc64 ^
5e92b61 ^
a6c8162 ^

e10fc64 ^





a6c8162 ^





979e1f9 ^
a6c8162 ^
6753171 ^
6753171 ^
6753171 ^

bc6811a ^
6753171 ^
bc6811a ^



6753171 ^
6753171 ^


bc6811a ^

6753171 ^






7f76158 ^
6753171 ^

e10fc64 ^
6753171 ^
6753171 ^
6753171 ^
6753171 ^
6753171 ^
45d6723 ^
6753171 ^




6753171 ^
2fd6b1a ^
bc6811a ^

2fd6b1a ^
e539d23 ^
2fd6b1a ^



bc6811a ^














f56b111 ^












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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126