diff options
author | Dennis Kasprzyk <onestone@opencompositing.org> | 2007-10-15 13:35:52 +0200 |
---|---|---|
committer | Dennis Kasprzyk <onestone@opencompositing.org> | 2007-10-15 13:35:52 +0200 |
commit | a9997834a5ba1acc7f6776b55110639baabdedcf (patch) | |
tree | b9a42972a2041bf9525fa84b05723cec09d2db06 | |
parent | a8d6e0b939e0b9227cc9ab158a747e24710e9b87 (diff) |
getWindowMovementForOffset should always return correct values, also for too big offsets.
-rw-r--r-- | src/window.c | 3 |
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) { |