summaryrefslogtreecommitdiff
path: root/draw.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@10kloc.org>2006-08-24 09:27:01 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-08-24 09:27:01 +0200
commit30d72e5f8730bd8e16ead1b3ed40663d1f850fa4 (patch)
treebe530ce30ef17a65c9dbfd5b551d1cf46e679a80 /draw.c
parent0ffd139f2c06c3cfb1f6dffbb81ff170a84a1f8a (diff)
removed unnecessary Xlib call
Diffstat (limited to 'draw.c')
-rw-r--r--draw.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/draw.c b/draw.c
index dddede0..38ae8c3 100644
--- a/draw.c
+++ b/draw.c
@@ -38,8 +38,6 @@ drawtext(const char *text, Bool invert, Bool border)
w = 0;
if(border) {
- XSetLineAttributes(dpy, dc.gc, 1, LineSolid, CapButt, JoinMiter);
- XSetForeground(dpy, dc.gc, dc.border);
points[0].x = dc.x;
points[0].y = dc.y;
points[1].x = dc.w - 1;
@@ -50,6 +48,7 @@ drawtext(const char *text, Bool invert, Bool border)
points[3].y = 0;
points[4].x = 0;
points[4].y = -(dc.h - 1);
+ XSetForeground(dpy, dc.gc, dc.border);
XDrawLines(dpy, dc.drawable, dc.gc, points, 5, CoordModePrevious);
}