summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2011-06-24 22:43:00 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2011-06-24 22:43:00 +0800
commit7844ea374ba03ea27d8c09209ab3c444de24b3d6 (patch)
tree36259daaca13e3e6da674be882b4ea5dd14e580e /src
parentfaf527f1b6998306773a79b0db738660b157cfbc (diff)
downloadmobilebling-7844ea374ba03ea27d8c09209ab3c444de24b3d6.tar.gz
mobilebling-7844ea374ba03ea27d8c09209ab3c444de24b3d6.tar.bz2
Use priv->border instead of priv->input as the EWMH says that applications
which request to move their windows (through a normal ConfigureRequest) should take into account the decoration extents and not the border extents. Fixes LP#722830
Diffstat (limited to 'src')
-rw-r--r--src/window.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 3caa4b9..ee77619 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -2976,15 +2976,15 @@ PrivateWindow::adjustConfigureRequestForGravity (XWindowChanges *xwc,
case WestGravity:
case SouthWestGravity:
if (xwcm & CWX)
- newX += priv->input.left * direction;
+ newX += priv->border.left * direction;
break;
case NorthGravity:
case CenterGravity:
case SouthGravity:
if (xwcm & CWX)
- newX -= (xwc->width / 2 - priv->input.left +
- (priv->input.left + priv->input.right) / 2) * direction;
+ newX -= (xwc->width / 2 - priv->border.left +
+ (priv->border.left + priv->border.right) / 2) * direction;
else
newX -= (xwc->width - priv->serverGeometry.width ()) * direction;
break;
@@ -2993,7 +2993,7 @@ PrivateWindow::adjustConfigureRequestForGravity (XWindowChanges *xwc,
case EastGravity:
case SouthEastGravity:
if (xwcm & CWX)
- newX -= xwc->width + priv->input.right * direction;
+ newX -= xwc->width + priv->border.right * direction;
else
newX -= (xwc->width - priv->serverGeometry.width ()) * direction;
break;