summaryrefslogtreecommitdiffstats
path: root/draw.c
diff options
context:
space:
mode:
Diffstat (limited to 'draw.c')
-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}