aboutsummaryrefslogtreecommitdiff
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
parent0ffd139f2c06c3cfb1f6dffbb81ff170a84a1f8a (diff)
removed unnecessary Xlib call
-rw-r--r--draw.c3
-rw-r--r--main.c1
2 files changed, 2 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)
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
diff --git a/main.c b/main.c
index 2f20efb..840a7bc 100644
--- a/main.c
+++ b/main.c
@@ -337,6 +337,7 @@ main(int argc, char *argv[])
337 /* pixmap */ 337 /* pixmap */
338 dc.drawable = XCreatePixmap(dpy, root, mw, mh, DefaultDepth(dpy, screen)); 338 dc.drawable = XCreatePixmap(dpy, root, mw, mh, DefaultDepth(dpy, screen));
339 dc.gc = XCreateGC(dpy, root, 0, 0); 339 dc.gc = XCreateGC(dpy, root, 0, 0);
340 XSetLineAttributes(dpy, dc.gc, 1, LineSolid, CapButt, JoinMiter);
340 341
341 if(maxname) 342 if(maxname)
342 cmdw = textw(maxname); 343 cmdw = textw(maxname);