summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2011-07-07 03:35:33 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2011-07-07 03:35:33 +0800
commit0550e0941017c2c7ce027ba8ba9b5e47b17e409a (patch)
tree062973d70b5be60d40105cdf5ea438c7ef7e9941 /src
parenta1268e235bc228a9faaae110d52f761807ee920c (diff)
parent7844ea374ba03ea27d8c09209ab3c444de24b3d6 (diff)
downloadmobilebling-0550e0941017c2c7ce027ba8ba9b5e47b17e409a.tar.gz
mobilebling-0550e0941017c2c7ce027ba8ba9b5e47b17e409a.tar.bz2
Merge in lp:~unity-team/compiz-core/compiz-core.fix_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;