dwm-meillo

diff draw.c @ 607:16762f7414de

if client is focused, the emptysquare don't needs to be drawed
author arg@mig29
date Fri, 01 Dec 2006 17:51:05 +0100
parents 44b5617c78b3
children ecfc43176b2d
line diff
     1.1 --- a/draw.c	Fri Dec 01 17:45:27 2006 +0100
     1.2 +++ b/draw.c	Fri Dec 01 17:51:05 2006 +0100
     1.3 @@ -30,7 +30,7 @@
     1.4  }
     1.5  
     1.6  static void
     1.7 -drawtext(const char *text, unsigned long col[ColLast], Bool filleddot, Bool emptydot) {
     1.8 +drawtext(const char *text, unsigned long col[ColLast], Bool filledsquare, Bool emptysquare) {
     1.9  	int x, y, w, h;
    1.10  	static char buf[256];
    1.11  	unsigned int len, olen;
    1.12 @@ -75,13 +75,13 @@
    1.13  		XDrawString(dpy, dc.drawable, dc.gc, x, y, buf, len);
    1.14  	}
    1.15  	x = (h + 2) / 4;
    1.16 -	if(filleddot) {
    1.17 +	if(filledsquare) {
    1.18  		r.x = dc.x + 2;
    1.19  		r.y = dc.y + 2;
    1.20  		r.width = r.height = x;
    1.21  		XFillRectangles(dpy, dc.drawable, dc.gc, &r, 1);
    1.22  	}
    1.23 -	if(emptydot) {
    1.24 +	else if(emptysquare) {
    1.25  		pt[0].x = dc.x + 2;
    1.26  		pt[0].y = dc.y + 2;
    1.27  		pt[1].x = x;