summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@opencompositing.org>2007-10-15 13:35:52 +0200
committerDennis Kasprzyk <onestone@opencompositing.org>2007-10-15 13:35:52 +0200
commita9997834a5ba1acc7f6776b55110639baabdedcf (patch)
treeb9a42972a2041bf9525fa84b05723cec09d2db06
parenta8d6e0b939e0b9227cc9ab158a747e24710e9b87 (diff)
getWindowMovementForOffset should always return correct values, also for too big offsets.
-rw-r--r--src/window.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c
index 973e48f4..078a779c 100644
--- a/src/window.c
+++ b/src/window.c
@@ -5035,6 +5035,9 @@ getWindowMovementForOffset (CompWindow *w,
vWidth = s->width * s->hsize;
vHeight = s->height * s->vsize;
+ offX %= s->width * s->hsize;
+ offY %= s->height * s->vsize;
+
/* x */
if (s->hsize == 1)
{