diff options
Diffstat (limited to 'draw.c')
-rw-r--r-- | draw.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -38,8 +38,6 @@ drawtext(const char *text, Bool invert, Bool border) | |||
38 | 38 | ||
39 | w = 0; | 39 | w = 0; |
40 | if(border) { | 40 | if(border) { |
41 | XSetLineAttributes(dpy, dc.gc, 1, LineSolid, CapButt, JoinMiter); | ||
42 | XSetForeground(dpy, dc.gc, dc.border); | ||
43 | points[0].x = dc.x; | 41 | points[0].x = dc.x; |
44 | points[0].y = dc.y; | 42 | points[0].y = dc.y; |
45 | points[1].x = dc.w - 1; | 43 | points[1].x = dc.w - 1; |
@@ -50,6 +48,7 @@ drawtext(const char *text, Bool invert, Bool border) | |||
50 | points[3].y = 0; | 48 | points[3].y = 0; |
51 | points[4].x = 0; | 49 | points[4].x = 0; |
52 | points[4].y = -(dc.h - 1); | 50 | points[4].y = -(dc.h - 1); |
51 | XSetForeground(dpy, dc.gc, dc.border); | ||
53 | XDrawLines(dpy, dc.drawable, dc.gc, points, 5, CoordModePrevious); | 52 | XDrawLines(dpy, dc.drawable, dc.gc, points, 5, CoordModePrevious); |
54 | } | 53 | } |
55 | 54 | ||