summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2008-09-29 18:08:24 +0200
committerDanny Baumann <dannybaumann@web.de>2008-09-29 18:08:24 +0200
commit633385e5e54147e750c6ca5a179f803373ab3e3e (patch)
treedd5f75e1239852084acfcb906c660de6384b9340 /src
parent3dd149ce5c465cf9b068aeb0bfdeb207907a836c (diff)
Ensure windows fit in the work area when placing them by calling the window sizing validation function.
Diffstat (limited to 'src')
-rw-r--r--src/event.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/event.c b/src/event.c
index ac617491..5b3cfd3c 100644
--- a/src/event.c
+++ b/src/event.c
@@ -2016,7 +2016,7 @@ handleEvent (CompDisplay *d,
int newX, newY;
int gravity = w->sizeHints.win_gravity;
XWindowChanges xwc;
- unsigned int xwcm;
+ unsigned int xwcm, source;
/* adjust for gravity */
xwc.x = w->serverX;
@@ -2036,6 +2036,10 @@ handleEvent (CompDisplay *d,
xwcm |= CWX | CWY;
}
+ source = ClientTypeApplication;
+ (*w->screen->validateWindowResizeRequest) (w, &xwcm, &xwc,
+ source);
+
if (xwcm)
configureXWindow (w, xwcm, &xwc);