summaryrefslogtreecommitdiffstats
path: root/draw.c
diff options
context:
space:
mode:
authorarg@mig29 <unknown>2006-12-01 17:51:05 +0100
committerarg@mig29 <unknown>2006-12-01 17:51:05 +0100
commit4881857458f7558f5609d44956e966809eb9f93e (patch)
tree1c744b085cfe146e2e156bf674990bf782ed4081 /draw.c
parentand the winner is (diff)
downloaddwm-4881857458f7558f5609d44956e966809eb9f93e.tar.gz
dwm-4881857458f7558f5609d44956e966809eb9f93e.zip
if client is focused, the emptysquare don't needs to be drawed
Diffstat (limited to '')
-rw-r--r--draw.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/draw.c b/draw.c
index 5be403b..3842685 100644
--- a/draw.c
+++ b/draw.c
@@ -30,7 +30,7 @@ textnw(const char *text, unsigned int len) {
30} 30}
31 31
32static void 32static void
33drawtext(const char *text, unsigned long col[ColLast], Bool filleddot, Bool emptydot) { 33drawtext(const char *text, unsigned long col[ColLast], Bool filledsquare, Bool emptysquare) {
34 int x, y, w, h; 34 int x, y, w, h;
35 static char buf[256]; 35 static char buf[256];
36 unsigned int len, olen; 36 unsigned int len, olen;
@@ -75,13 +75,13 @@ drawtext(const char *text, unsigned long col[ColLast], Bool filleddot, Bool empt
75 XDrawString(dpy, dc.drawable, dc.gc, x, y, buf, len); 75 XDrawString(dpy, dc.drawable, dc.gc, x, y, buf, len);
76 } 76 }
77 x = (h + 2) / 4; 77 x = (h + 2) / 4;
78 if(filleddot) { 78 if(filledsquare) {
79 r.x = dc.x + 2; 79 r.x = dc.x + 2;
80 r.y = dc.y + 2; 80 r.y = dc.y + 2;
81 r.width = r.height = x; 81 r.width = r.height = x;
82 XFillRectangles(dpy, dc.drawable, dc.gc, &r, 1); 82 XFillRectangles(dpy, dc.drawable, dc.gc, &r, 1);
83 } 83 }
84 if(emptydot) { 84 else if(emptysquare) {
85 pt[0].x = dc.x + 2; 85 pt[0].x = dc.x + 2;
86 pt[0].y = dc.y + 2; 86 pt[0].y = dc.y + 2;
87 pt[1].x = x; 87 pt[1].x = x;