summaryrefslogtreecommitdiffstats
path: root/draw.c
diff options
context:
space:
mode:
authorarg@10ksloc.org <unknown>2006-08-03 10:55:07 +0200
committerarg@10ksloc.org <unknown>2006-08-03 10:55:07 +0200
commit8cc7f3bace087dfb024a23115c211d82b35614ae (patch)
tree5288e485d560dff018832a5160a19e6c69e93dd4 /draw.c
parentimplemented the idea presented by Sander for dwm target (diff)
downloaddwm-8cc7f3bace087dfb024a23115c211d82b35614ae.tar.gz
dwm-8cc7f3bace087dfb024a23115c211d82b35614ae.zip
changed Client->tags and Rule->tags to be Bool (I'll also try to remove the TLast enum)
Diffstat (limited to '')
-rw-r--r--draw.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/draw.c b/draw.c
index 4ba5cd6..506a862 100644
--- a/draw.c
+++ b/draw.c
@@ -30,7 +30,7 @@ drawborder(void)
30} 30}
31 31
32static unsigned int 32static unsigned int
33textnw(char *text, unsigned int len) 33textnw(const char *text, unsigned int len)
34{ 34{
35 XRectangle r; 35 XRectangle r;
36 36
@@ -156,8 +156,8 @@ drawtitle(Client *c)
156 for(i = 0; i < TLast; i++) { 156 for(i = 0; i < TLast; i++) {
157 if(c->tags[i]) { 157 if(c->tags[i]) {
158 dc.x += dc.w; 158 dc.x += dc.w;
159 dc.w = textw(c->tags[i]); 159 dc.w = textw(tags[i]);
160 drawtext(c->tags[i], !istile, True); 160 drawtext(tags[i], !istile, True);
161 } 161 }
162 } 162 }
163 dc.x += dc.w; 163 dc.x += dc.w;
@@ -229,7 +229,7 @@ setfont(const char *fontstr)
229} 229}
230 230
231unsigned int 231unsigned int
232textw(char *text) 232textw(const char *text)
233{ 233{
234 return textnw(text, strlen(text)) + dc.font.height; 234 return textnw(text, strlen(text)) + dc.font.height;
235} 235}