URI: 
       tOnly move windows with position set to 0,0 - glazier - window management experiments
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
   DIR README
   DIR LICENSE
       ---
   DIR commit 86d2cc63e0198e780e9a2fb9de6eee3bc6579332
   DIR parent a468ee5a0585aa7c3f7ebceb633340107dc544c5
  HTML Author: Willy Goiffon <dev@z3bra.org>
       Date:   Mon, 15 Jun 2020 16:38:04 +0200
       
       Only move windows with position set to 0,0
       
       Diffstat:
         M glazier.c                           |       5 ++++-
       
       1 file changed, 4 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/glazier.c b/glazier.c
       t@@ -278,7 +278,10 @@ cb_create(xcb_generic_event_t *ev)
                if (verbose)
                        fprintf(stderr, "%s 0x%08x\n", XEV(e), e->window);
        
       -        if (!wm_is_mapped(e->window)) {
       +        x = wm_get_attribute(e->window, ATTR_X);
       +        y = wm_get_attribute(e->window, ATTR_Y);
       +
       +        if (!wm_is_mapped(e->window) && !x && !y) {
                        wm_get_cursor(0, scrn->root, &x, &y);
                        m = monitor(x, y);