commit 829a64e302e9c60860c709aeb03967980159cbab
parent 9d96bc2fe6e4454f4f9d9e94d2c36a73752e7b31
Author: Anselm R. Garbe <garbeam@wmii.de>
Date: Fri, 24 Mar 2006 12:28:52 +0100
drawing quadrants as well
Diffstat:
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/cmd/wm/mouse.c b/cmd/wm/mouse.c
@@ -212,6 +212,12 @@ draw_pseudo_border(XRectangle * r)
pseudo.y += 2;
pseudo.width -= 4;
pseudo.height -= 4;
+ XSetLineAttributes(dpy, xorgc, 1, LineSolid, CapNotLast, JoinMiter);
+ XDrawLine(dpy, root, xorgc, pseudo.x + 2, pseudo.y + pseudo.height / 2,
+ pseudo.x + pseudo.width - 2, pseudo.y + pseudo.height / 2);
+ XDrawLine(dpy, root, xorgc, pseudo.x + pseudo.width / 2, pseudo.y + 2,
+ pseudo.x + pseudo.width / 2, pseudo.y + pseudo.height - 2);
+ XSetLineAttributes(dpy, xorgc, 4, LineSolid, CapNotLast, JoinMiter);
XDrawRectangles(dpy, root, xorgc, &pseudo, 1);
XSync(dpy, False);
}
diff --git a/cmd/wm/wm.c b/cmd/wm/wm.c
@@ -150,12 +150,10 @@ init_screen()
gcv.subwindow_mode = IncludeInferiors;
gcv.function = GXxor;
gcv.foreground = def.sel.bg;
- gcv.line_width = 4;
gcv.plane_mask = AllPlanes;
gcv.graphics_exposures = False;
xorgc = XCreateGC(dpy, root, GCForeground | GCGraphicsExposures
- | GCFunction | GCSubwindowMode | GCLineWidth
- | GCPlaneMask, &gcv);
+ | GCFunction | GCSubwindowMode | GCPlaneMask, &gcv);
rect.x = rect.y = 0;
rect.width = DisplayWidth(dpy, screen);
rect.height = DisplayHeight(dpy, screen);