summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2008-10-06 16:59:34 +0200
committerDanny Baumann <dannybaumann@web.de>2008-10-06 16:59:34 +0200
commita44407caf3fb1c4f404ed7e17bb30f33aeecccbc (patch)
treed61b3207d8ebe0719fb4c73eaa7a78d8de034fc5 /src
parente6e15f9d4b876a1bb98162c9ce3b9fb4c1d4effe (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/event.c8
1 files changed, 4 insertions, 4 deletions
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);