drawing quadrants as well

This commit is contained in:
Anselm R. Garbe 2006-03-24 12:28:52 +01:00
parent 9d96bc2fe6
commit 829a64e302
2 changed files with 7 additions and 3 deletions

View File

@ -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);
}

View File

@ -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);