summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarex <marex@beryl-project.org>2007-04-04 14:55:11 +0200
committermarex <marex@beryl-project.org>2007-04-04 14:55:11 +0200
commit81fcdfb8d990edf475537e6d024f540d2fda03da (patch)
treef23f8841b4293f4732f19e198a798693898f40c6
parentda3163c9d6ec072841b7473890cbc50c10b3df33 (diff)
downloadberyl-premerge-81fcdfb8d990edf475537e6d024f540d2fda03da.tar.gz
beryl-premerge-81fcdfb8d990edf475537e6d024f540d2fda03da.tar.bz2
wall: Fixed problem with switcher drawing on 3x3
-rw-r--r--src/wall.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/wall.c b/src/wall.c
index cdd7144..ea9bc43 100644
--- a/src/wall.c
+++ b/src/wall.c
@@ -1310,8 +1310,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;
@@ -1786,9 +1786,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);
}
}