From e396d3e091801135cf20b76d69199a9955ff3dc9 Mon Sep 17 00:00:00 2001 From: Andy Spencer Date: Sun, 18 Sep 2011 20:36:19 +0000 Subject: [PATCH] Force WM requested size for configure requests --- sys-x11.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys-x11.c b/sys-x11.c index c606d9a..75c2edd 100644 --- 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); -- 2.43.2