glazier

the original window manipulator
Log | Files | Refs | Submodules | README | LICENSE

commit be1ea7423a1e2f0c0737f0489ba496cfc073b50b
parent e8169b62ac85a3f5ab0145f28393e924fc43725b
Author: Willy Goiffon <dev@z3bra.org>
Date:   Tue, 22 Oct 2019 18:41:22 +0200

Add borders around windows

Diffstat:
config.def.h | 3++-
glazier.c | 1+
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/config.def.h b/config.def.h @@ -2,7 +2,8 @@ #define XHAIR_SIZE "tcross" #define XHAIR_DFLT "left_ptr" -/* window titlebars */ +/* window borders and titlebar */ +int border = 2; int titlebar = 32; int titlebar_color = 0xdeadca7; diff --git a/glazier.c b/glazier.c @@ -198,6 +198,7 @@ cb_mapreq(xcb_generic_event_t *ev) h = wm_get_attribute(frame, ATTR_H); wm_get_cursor(0, scrn->root, &x, &y); + wm_set_border(border, titlebar_color, frame); wm_move(frame, ABSOLUTE, x - w/2, y - h/2); xcb_map_window(conn, e->window); wm_set_focus(e->window);