all repos — dmenu @ 30d72e5f8730bd8e16ead1b3ed40663d1f850fa4

my build of dmenu

removed unnecessary Xlib call
Anselm R. Garbe arg@10kloc.org
Thu, 24 Aug 2006 09:27:01 +0200
commit

30d72e5f8730bd8e16ead1b3ed40663d1f850fa4

parent

0ffd139f2c06c3cfb1f6dffbb81ff170a84a1f8a

2 files changed, 2 insertions(+), 2 deletions(-)

jump to
M draw.cdraw.c

@@ -38,8 +38,6 @@ XFillRectangles(dpy, dc.drawable, dc.gc, &r, 1);

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 @@ points[3].x = -(dc.w - 1);

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); }
M main.cmain.c

@@ -337,6 +337,7 @@

/* pixmap */ dc.drawable = XCreatePixmap(dpy, root, mw, mh, DefaultDepth(dpy, screen)); dc.gc = XCreateGC(dpy, root, 0, 0); + XSetLineAttributes(dpy, dc.gc, 1, LineSolid, CapButt, JoinMiter); if(maxname) cmdw = textw(maxname);