summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/wobbly.c
diff options
context:
space:
mode:
authormaniac <maniac@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-03 14:01:42 +0000
committermaniac <maniac@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-03 14:01:42 +0000
commit5f2b53c16d32f505f45f60cef196c5d3e78504f8 (patch)
treece4c12864bf17d9c0f9278865c09359aed104e8c /beryl-plugins/src/wobbly.c
parent6eb217cba2f4a21b3d75f3c6ec2e83ac81100ae7 (diff)
downloadmarex-dev-5f2b53c16d32f505f45f60cef196c5d3e78504f8.tar.gz
marex-dev-5f2b53c16d32f505f45f60cef196c5d3e78504f8.tar.bz2
beryl-plugins (wobbly): only update window position when no pending position changes exist (by David Reveman, as the last commit)
git-svn-id: file:///beryl/trunk@2306 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/wobbly.c')
-rw-r--r--beryl-plugins/src/wobbly.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/beryl-plugins/src/wobbly.c b/beryl-plugins/src/wobbly.c
index bcc5af7..1c0ae8d 100644
--- a/beryl-plugins/src/wobbly.c
+++ b/beryl-plugins/src/wobbly.c
@@ -2265,18 +2265,18 @@ static void wobblyPreparePaintScreen(CompScreen * s, int msSinceLastPaint)
{
ww->model = NULL;
- moveWindow(w,
- model->topLeft.
- x +
- w->output.left -
+ if (w->attrib.x == w->serverX &&
+ w->attrib.y == w->serverY)
+ {
+ moveWindow (w,
+ model->topLeft.x + w->output.left -
w->attrib.x,
- model->topLeft.
- y +
- w->output.top - w->attrib.y, TRUE, TRUE);
+ model->topLeft.y + w->output.top -
+ w->attrib.y, TRUE, TRUE);
+ syncWindowPosition (w);
+ }
ww->model = model;
-
- syncWindowPosition(w);
}
if (!(s->damageMask & COMP_SCREEN_DAMAGE_ALL_MASK))