dwm-meillo

diff draw.c @ 173:1db04019684e

changed Client->tags and Rule->tags to be Bool (I'll also try to remove the TLast enum)
author arg@10ksloc.org
date Thu, 03 Aug 2006 10:55:07 +0200
parents 21071ae1fe68
children e848966a1ac6
line diff
     1.1 --- a/draw.c	Wed Aug 02 17:49:21 2006 +0200
     1.2 +++ b/draw.c	Thu Aug 03 10:55:07 2006 +0200
     1.3 @@ -30,7 +30,7 @@
     1.4  }
     1.5  
     1.6  static unsigned int
     1.7 -textnw(char *text, unsigned int len)
     1.8 +textnw(const char *text, unsigned int len)
     1.9  {
    1.10  	XRectangle r;
    1.11  
    1.12 @@ -156,8 +156,8 @@
    1.13  	for(i = 0; i < TLast; i++) {
    1.14  		if(c->tags[i]) {
    1.15  			dc.x += dc.w;
    1.16 -			dc.w = textw(c->tags[i]);
    1.17 -			drawtext(c->tags[i], !istile, True);
    1.18 +			dc.w = textw(tags[i]);
    1.19 +			drawtext(tags[i], !istile, True);
    1.20  		}
    1.21  	}
    1.22  	dc.x += dc.w;
    1.23 @@ -229,7 +229,7 @@
    1.24  }
    1.25  
    1.26  unsigned int
    1.27 -textw(char *text)
    1.28 +textw(const char *text)
    1.29  {
    1.30  	return textnw(text, strlen(text)) + dc.font.height;
    1.31  }