summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <SmSpillaz@gmail.com>2010-05-25 01:18:13 +0800
committerSam Spilsbury <SmSpillaz@gmail.com>2010-05-25 01:18:13 +0800
commitf9e35c6e59796ca636b9b803521db6a601beff07 (patch)
treea806de70495fc10400379b1f1bcc6fdb49f51a49
parentffeee8a1ef9c921f7e1557bffe9a73bba7b4f64b (diff)
downloadput-f9e35c6e59796ca636b9b803521db6a601beff07.tar.gz
put-f9e35c6e59796ca636b9b803521db6a601beff07.tar.bz2
Fix typo which caused offset put bottom
-rw-r--r--src/put.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/put.cpp b/src/put.cpp
index 3d0aa99..625f69a 100644
--- a/src/put.cpp
+++ b/src/put.cpp
@@ -551,7 +551,7 @@ PutScreen::getDistance (CompWindow *w,
break;
case PutBottom:
/* center of bottom edge */
- dx = (workArea.width () / 2) - HALF_HEIGHT (w) -
+ dx = (workArea.width () / 2) - HALF_WIDTH (w) -
(x - workArea.x ());
dy = workArea.height () - w->serverHeight () - (y - workArea.y ()) -
BOTTOM_BORDER (w) - ps->optionGetPadBottom ();
@@ -559,7 +559,7 @@ PutScreen::getDistance (CompWindow *w,
case PutEmptyBottom:
/* center of bottom edge */
workArea.setY (workArea.y () + BOTTOM_BORDER (w));
- dx = (workArea.width () / 2) - HALF_HEIGHT (w) -
+ dx = (workArea.width () / 2) - HALF_WIDTH (w) -
(x - workArea.x ());
dy = workArea.height () - w->serverHeight () - (y - workArea.y ()) -
BOTTOM_BORDER (w) - ps->optionGetPadBottom ();