tAdd borders around windows - glazier - window management experiments
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit be1ea7423a1e2f0c0737f0489ba496cfc073b50b
 (DIR) parent e8169b62ac85a3f5ab0145f28393e924fc43725b
 (HTM) Author: Willy Goiffon <dev@z3bra.org>
       Date:   Tue, 22 Oct 2019 18:41:22 +0200
       
       Add borders around windows
       
       Diffstat:
         M config.def.h                        |       3 ++-
         M glazier.c                           |       1 +
       
       2 files changed, 3 insertions(+), 1 deletion(-)
       ---
 (DIR) diff --git a/config.def.h b/config.def.h
       t@@ -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;
        
 (DIR) diff --git a/glazier.c b/glazier.c
       t@@ -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);