]> Pileus Git - wmpus/commitdiff
Force WM requested size for configure requests
authorAndy Spencer <andy753421@gmail.com>
Sun, 18 Sep 2011 20:36:19 +0000 (20:36 +0000)
committerAndy Spencer <andy753421@gmail.com>
Sun, 18 Sep 2011 20:36:19 +0000 (20:36 +0000)
sys-x11.c

index c606d9a30beec484460930b293c9a0b31f70ae0b..75c2edd8a88b600a82f4e4e73c1bf22dfe657c56 100644 (file)
--- a/sys-x11.c
+++ b/sys-x11.c
@@ -304,6 +304,12 @@ static void process_event(int type, XEvent *ev, win_t *root)
                        .x     = cre->x,     .y      = cre->y,
                        .width = cre->width, .height = cre->height,
                };
+               if ((win = win_find(dpy,ev->xmaprequest.window,1))) {
+                       wc.x      = win->x;
+                       wc.y      = win->y;
+                       wc.width  = win->w;
+                       wc.height = win->h;
+               }
                printf("configure_req: %d - %x, (0x%lx) %dx%d @ %d,%d\n",
                                type, (int)cre->window, cre->value_mask,
                                cre->height, cre->width, cre->x, cre->y);