summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarex <marex@beryl-project.org>2007-04-04 14:53:02 +0200
committermarex <marex@beryl-project.org>2007-04-04 14:53:02 +0200
commitff63d01afe4023e6e2e11ca1736235b0f93d7750 (patch)
tree1d18c0499a398dcac5762a5482c3c97b9a5aba08
parentd3c96484f543dbd99c5e5fee0e8c53630ad175a6 (diff)
downloadberyl-plugins-ff63d01afe4023e6e2e11ca1736235b0f93d7750.tar.gz
beryl-plugins-ff63d01afe4023e6e2e11ca1736235b0f93d7750.tar.bz2
beryl-plugins: Fixed another wall switcher drawing problemHEADmaster
-rw-r--r--src/wall.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/wall.c b/src/wall.c
index 9e96483..dd6f65f 100644
--- a/src/wall.c
+++ b/src/wall.c
@@ -1345,8 +1345,8 @@ static void wallDrawCairoTextureOnScreen(CompScreen *s, int output, Region regio
float width = (float) ws->switcherContext->width;
float height = (float) ws->switcherContext->height;
- float topleftx = centerx-width/2.0f;
- float toplefty = centery-height/2.0f;
+ float topleftx = centerx-floor(width/2.0f);
+ float toplefty = centery-floor(height/2.0f);
float border = 10.0f;
@@ -1829,9 +1829,9 @@ static void wallPreparePaintScreen(CompScreen * s, int ms)
wallGetDistanceForAnimation(s, left, s->currentOutputDev, &dx, &dy);
- moveWindow (w, ws->moveWindowX-w->attrib.x ,ws->moveWindowY-w->attrib.y, TRUE, TRUE);
- moveWindowToViewportPosition(w,ws->moveWindowX-s->width*dx,FALSE);
- moveWindowToViewportYPosition(w,ws->moveWindowY-s->height*dy,FALSE);
+ moveWindow (w, ws->moveWindowX - w->attrib.x, ws->moveWindowY - w->attrib.y, TRUE, TRUE);
+ moveWindowToViewportPosition(w, ws->moveWindowX - s->width*dx, FALSE);
+ moveWindowToViewportYPosition(w, ws->moveWindowY - s->height*dy, FALSE);
syncWindowPosition(w);
}
}