From bede0342e36afcc674bf023d1d1ea5c43a74f4ea Mon Sep 17 00:00:00 2001 From: Danny Baumann Date: Mon, 17 Mar 2008 08:00:46 +0100 Subject: [PATCH] Adjust ConfigureRequest geometry for decoration size. Reference: https://bugs.freedesktop.org/show_bug.cgi?id=13589 --- src/window.c | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/src/window.c b/src/window.c index 51d30d9..6529073 100644 --- a/src/window.c +++ b/src/window.c @@ -3757,6 +3757,13 @@ moveResizeWindow (CompWindow *w, if (xwcm & (CWX | CWWidth)) { switch (gravity) { + case NorthWestGravity: + case WestGravity: + case SouthWestGravity: + if (xwcm & CWX) + xwc->x += w->input.left; + break; + case NorthGravity: case CenterGravity: case SouthGravity: @@ -3784,6 +3791,13 @@ moveResizeWindow (CompWindow *w, if (xwcm & (CWY | CWHeight)) { switch (gravity) { + case NorthWestGravity: + case NorthGravity: + case NorthEastGravity: + if (xwcm & CWY) + xwc->y += w->input.top; + break; + case WestGravity: case CenterGravity: case EastGravity: -- 1.5.4.1