From a44407caf3fb1c4f404ed7e17bb30f33aeecccbc Mon Sep 17 00:00:00 2001 From: Danny Baumann Date: Mon, 6 Oct 2008 16:59:34 +0200 Subject: Validate size before placing and make sure the size validation function only respects USPosition if the window fits on the work area. Fixes e.g. blender window placement. --- src/event.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/event.c b/src/event.c index 8bd40fff..894fe37d 100644 --- a/src/event.c +++ b/src/event.c @@ -2033,6 +2033,10 @@ handleEvent (CompDisplay *d, CWX | CWY, gravity); + source = ClientTypeApplication; + (*w->screen->validateWindowResizeRequest) (w, &xwcm, &xwc, + source); + if ((*w->screen->placeWindow) (w, xwc.x, xwc.y, &newX, &newY)) { @@ -2041,10 +2045,6 @@ handleEvent (CompDisplay *d, xwcm |= CWX | CWY; } - source = ClientTypeApplication; - (*w->screen->validateWindowResizeRequest) (w, &xwcm, &xwc, - source); - if (xwcm) configureXWindow (w, xwcm, &xwc); -- cgit v1.2.3