JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
back to 3 colors
[dwm.git] / draw.c
diff --git a/draw.c b/draw.c
index f73a7bd..fdb36d7 100644 (file)
--- a/draw.c
+++ b/draw.c
@@ -86,17 +86,10 @@ drawtext(const char *text, Bool invert, Bool highlight)
                XDrawString(dpy, dc.drawable, dc.gc, x, y, buf, len);
        }
        if(highlight) {
-               points[0].x = dc.x + 1;
-               points[0].y = dc.y + 1;
-               points[1].x = dc.w - 3;
-               points[1].y = 0;
-               points[2].x = 0;
-               points[2].y = dc.h - 3;
-               points[3].x = -(dc.w - 3);
-               points[3].y = 0;
-               points[4].x = 0;
-               points[4].y = -(dc.h - 3);
-               XDrawLines(dpy, dc.drawable, dc.gc, points, 5, CoordModePrevious);
+               r.x = dc.x + 2;
+               r.y = dc.y + 2;
+               r.width = r.height = 3;
+               XFillRectangles(dpy, dc.drawable, dc.gc, &r, 1);
        }
 }