mirror of
https://github.com/0intro/wmii
synced 2025-01-22 01:52:06 +03:00
drawing quadrants as well
This commit is contained in:
parent
9d96bc2fe6
commit
829a64e302
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user