# HG changeset patch # User arg@mig29 # Date 1164991865 -3600 # Node ID 16762f7414de11b04aa31b016028cd967af49e40 # Parent 44b5617c78b3a38358f63e94439615a5153ee076 if client is focused, the emptysquare don't needs to be drawed diff -r 44b5617c78b3 -r 16762f7414de draw.c --- a/draw.c Fri Dec 01 17:45:27 2006 +0100 +++ b/draw.c Fri Dec 01 17:51:05 2006 +0100 @@ -30,7 +30,7 @@ } static void -drawtext(const char *text, unsigned long col[ColLast], Bool filleddot, Bool emptydot) { +drawtext(const char *text, unsigned long col[ColLast], Bool filledsquare, Bool emptysquare) { int x, y, w, h; static char buf[256]; unsigned int len, olen; @@ -75,13 +75,13 @@ XDrawString(dpy, dc.drawable, dc.gc, x, y, buf, len); } x = (h + 2) / 4; - if(filleddot) { + if(filledsquare) { r.x = dc.x + 2; r.y = dc.y + 2; r.width = r.height = x; XFillRectangles(dpy, dc.drawable, dc.gc, &r, 1); } - if(emptydot) { + else if(emptysquare) { pt[0].x = dc.x + 2; pt[0].y = dc.y + 2; pt[1].x = x;