summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Frank Erikson <kristian@kristian-desktop.(none)>2008-11-20 14:55:55 +1300
committerKristian Frank Erikson <kristian@kristian-desktop.(none)>2008-11-20 14:55:55 +1300
commitd024ad89e2d74c4ea8e4611c7477e96ecd103283 (patch)
tree3b4e4c14fec5a5fa0d87aaf7aee6c799e5db1b82
parent7124de5f943a6fc17d3db355288372d11f51121a (diff)
downloadcf-squeeze-d024ad89e2d74c4ea8e4611c7477e96ecd103283.tar.gz
cf-squeeze-d024ad89e2d74c4ea8e4611c7477e96ecd103283.tar.bz2
Fixed windows moving due to window border during resize animation
-rw-r--r--squeeze.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/squeeze.c b/squeeze.c
index 1600e5d..18cfadf 100644
--- a/squeeze.c
+++ b/squeeze.c
@@ -523,7 +523,7 @@ squeezePaintWindow (CompWindow *w,
xOrigin = w->attrib.x - w->input.left;
yOrigin = w->attrib.y - w->input.top;
- matrixTranslate (&wTransform, sw->tx, sw->ty, 0.0f);
+ matrixTranslate (&wTransform, sw->tx - w->input.left, sw->ty - w->input.top, 0.0f);
matrixScale (&wTransform, xScale, yScale, 1.0f);
matrixTranslate (&wTransform,
(sw->targetX) / xScale - xOrigin,