glazier

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

commit ffd059d02c51b137bc67327d41bce99d5387e9c9
parent 9b96b9f0a2bc352035c886bc61510649524ede88
Author: Willy Goiffon <dev@z3bra.org>
Date:   Sat, 26 Oct 2019 15:37:33 +0200

Do not create windows outside the screen

Diffstat:
glazier.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/glazier.c b/glazier.c @@ -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