| author | Danny Baumann <dannybaumann@web.de> | 2010-02-08 10:41:41 (GMT) |
|---|---|---|
| committer | Danny Baumann <dannybaumann@web.de> | 2010-02-08 10:41:41 (GMT) |
| commit | 65ed618a5f36b795dbef69ba04ebde6b911d228c (patch) (side-by-side diff) | |
| tree | 2d653acfb2cdb18c53746bc358070c36cb036196 | |
| parent | ed078c18827a74ed2bca4467b1f90b2c896a6505 (diff) | |
| download | core-65ed618a5f36b795dbef69ba04ebde6b911d228c.tar.gz core-65ed618a5f36b795dbef69ba04ebde6b911d228c.tar.bz2 | |
Only accept ConfigureRequest / _NET_MOVERESIZE_WINDOW ClientMessage
events as placement if the application indicates that it wants to
specify the window position.
| -rw-r--r-- | src/window.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c index e7bb987..f2775a8 100644 --- a/src/window.c +++ b/src/window.c @@ -4028,10 +4028,14 @@ moveResizeWindow (CompWindow *w, int gravity, unsigned int source) { - Bool placed = xwcm & (CWX | CWY); + Bool placed = FALSE; xwcm &= (CWX | CWY | CWWidth | CWHeight | CWBorderWidth); + if (xwcm & (CWX | CWY)) + if (w->sizeHints.flags & (USPosition | PPosition)) + placed = TRUE; + if (gravity == 0) gravity = w->sizeHints.win_gravity; |
