diff options
author | Danny Baumann <dannybaumann@web.de> | 2008-10-09 16:32:31 +0200 |
---|---|---|
committer | Danny Baumann <dannybaumann@web.de> | 2008-10-09 16:32:31 +0200 |
commit | 5f0856b1201d270cce5e8a349d43aa0f508a4f86 (patch) | |
tree | 1a276ba3d2bf7af15aa4bfd272dad5015c8df72e /src | |
parent | 3bb37b40edbec9060e5faafff60a9b47cc71eb92 (diff) |
Sync validated size on initial map to X before placement to make sure the window placement function picks up the new size.
Diffstat (limited to 'src')
-rw-r--r-- | src/event.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/event.c b/src/event.c index b2493eaa..1f34243b 100644 --- a/src/event.c +++ b/src/event.c @@ -2038,17 +2038,17 @@ handleEvent (CompDisplay *d, (*w->screen->validateWindowResizeRequest) (w, &xwcm, &xwc, source); + if (xwcm) + configureXWindow (w, xwcm, &xwc); + if ((*w->screen->placeWindow) (w, xwc.x, xwc.y, &newX, &newY)) { xwc.x = newX; xwc.y = newY; - xwcm |= CWX | CWY; + configureXWindow (w, CWX | CWY, &xwc); } - if (xwcm) - configureXWindow (w, xwcm, &xwc); - w->placed = TRUE; } |