summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}
}