aboutsummaryrefslogtreecommitdiffstats
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
parent5d3fd3707b262508d1750cf95ac2e2f666be6163 (diff)
downloaddwm-8cc7f3bace087dfb024a23115c211d82b35614ae.tar.zst
changed Client->tags and Rule->tags to be Bool (I'll also try to remove the TLast enum)
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)
}
static unsigned int
-textnw(char *text, unsigned int len)
+textnw(const char *text, unsigned int len)
{
XRectangle r;
@@ -156,8 +156,8 @@ drawtitle(Client *c)
for(i = 0; i < TLast; i++) {
if(c->tags[i]) {
dc.x += dc.w;
- dc.w = textw(c->tags[i]);
- drawtext(c->tags[i], !istile, True);
+ dc.w = textw(tags[i]);
+ drawtext(tags[i], !istile, True);
}
}
dc.x += dc.w;
@@ -229,7 +229,7 @@ setfont(const char *fontstr)
}
unsigned int
-textw(char *text)
+textw(const char *text)
{
return textnw(text, strlen(text)) + dc.font.height;
}