tConfigure new windows border and events - glazier - window management experiments
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 2af6916320279d2f43d45b2d6a2eed5e4a2e3aef
 (DIR) parent 9a7c9e5dcacb3423dc2b51819b7add8fe51d0910
 (HTM) Author: Willy Goiffon <dev@z3bra.org>
       Date:   Fri, 18 Oct 2019 23:32:59 +0200
       
       Configure new windows border and events
       
       Diffstat:
         M glazier.c                           |       5 +++--
       
       1 file changed, 3 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/glazier.c b/glazier.c
       t@@ -44,17 +44,18 @@ cb_default(xcb_generic_event_t *ev)
        static int
        cb_create(xcb_generic_event_t *ev)
        {
       -        uint32_t val[2];
                xcb_create_notify_event_t *e;
        
                e = (xcb_create_notify_event_t *)ev;
       -
                if (verbose)
                        fprintf(stderr, "create: 0x%08x\n", e->window);
        
       +        wm_reg_event(e->window, XCB_EVENT_MASK_ENTER_WINDOW|XCB_EVENT_MASK_SUBSTRUCTURE_NOTIFY);
                wm_set_border(border, border_color, e->window);
                wm_set_focus(e->window);
        
       +        xcb_flush(conn);
       +
                return 0;
        }