summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2007-04-24 09:19:47 +0200
committerDanny Baumann <dannybaumann@web.de>2007-04-24 09:19:47 +0200
commite9f4307fffb9528f8b7427932fa53978594b2816 (patch)
tree7e88a9bfe77d43fce81309861c9ae0d491b37953
parent5ed343ebd7a97f49b57e9ac85d98c790aeb801d3 (diff)
downloadberyl-premerge-e9f4307fffb9528f8b7427932fa53978594b2816.tar.gz
beryl-premerge-e9f4307fffb9528f8b7427932fa53978594b2816.tar.bz2
Adapt to new signature of moveWindowToViewportPosition.
-rw-r--r--src/wall.c44
1 files changed, 1 insertions, 43 deletions
diff --git a/src/wall.c b/src/wall.c
index f31fdd2..de20036 100644
--- a/src/wall.c
+++ b/src/wall.c
@@ -1668,46 +1668,6 @@ static Bool wallPaintScreen(CompScreen * s,
return status;
}
-static void moveWindowToViewportYPosition(CompWindow * w, int y, Bool sync)
-{
- int ty, vHeight = w->screen->height * w->screen->hsize;
-
- y += w->screen->y * w->screen->height;
- y = MOD(y, vHeight);
- y -= w->screen->y * w->screen->height;
-
- ty = y - w->attrib.y;
- if (ty)
- {
- int m, wy;
-
- if (!w->managed)
- return;
-
- if (w->type & (CompWindowTypeDesktopMask | CompWindowTypeDockMask))
- return;
-
- if (w->state & CompWindowStateStickyMask)
- return;
-
- m = w->attrib.y + ty;
- if (m - w->output.top < w->screen->height - vHeight)
- wy = ty + vHeight;
- else if (m + w->height + w->output.bottom > vHeight)
- wy = ty - vHeight;
- else
- wy = ty;
-
- if (w->saveMask & CWY)
- w->saveWc.y += wy;
-
- moveWindow(w, 0, wy, sync, TRUE);
-
- if (sync)
- syncWindowPosition(w);
- }
-}
-
static void wallGetDistanceForAnimation(CompScreen *s, double left, int output, float *rdx, float *rdy)
{
WALL_SCREEN(s);
@@ -1788,9 +1748,7 @@ 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);
- syncWindowPosition(w);
+ moveWindowToViewportPosition(w, ws->moveWindowX - s->width*dx, ws->moveWindowY - s->height*dy, TRUE);
}
}
}