tDo not create windows outside the screen - glazier - window management experiments
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit ffd059d02c51b137bc67327d41bce99d5387e9c9
 (DIR) parent 9b96b9f0a2bc352035c886bc61510649524ede88
 (HTM) Author: Willy Goiffon <dev@z3bra.org>
       Date:   Sat, 26 Oct 2019 15:37:33 +0200
       
       Do not create windows outside the screen
       
       Diffstat:
         M glazier.c                           |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git a/glazier.c b/glazier.c
       t@@ -116,7 +116,7 @@ adopt(xcb_window_t wid)
                        w = wm_get_attribute(wid, ATTR_W);
                        h = wm_get_attribute(wid, ATTR_H);
                        wm_get_cursor(0, scrn->root, &x, &y);
       -                wm_teleport(wid, x - w/2, y - h/2, w, h);
       +                wm_move(wid, ABSOLUTE, x - w/2, y - h/2);
                }
        
                wm_reg_window_event(wid, XCB_EVENT_MASK_ENTER_WINDOW