diff --git a/miext/rootless/rootlessCommon.c b/miext/rootless/rootlessCommon.c index 6ca58c5c1..b91b7dce5 100644 --- a/miext/rootless/rootlessCommon.c +++ b/miext/rootless/rootlessCommon.c @@ -133,10 +133,8 @@ RootlessResolveColormap(ScreenPtr pScreen, int first_color, } unsigned long RootlessWID(WindowPtr pWindow) { - ScreenPtr pScreen = pWindow->drawable.pScreen; WindowPtr top = TopLevelParent(pWindow); RootlessWindowRec *winRec; - PixmapPtr curPixmap; if (top == NULL) { return 0; diff --git a/miext/rootless/rootlessWindow.c b/miext/rootless/rootlessWindow.c index c8086c64f..c640e8f8c 100644 --- a/miext/rootless/rootlessWindow.c +++ b/miext/rootless/rootlessWindow.c @@ -776,24 +776,12 @@ StartFrameResize(WindowPtr pWin, Bool gravity, ScreenPtr pScreen = pWin->drawable.pScreen; RootlessWindowRec *winRec = WINREC(pWin); - BoxRec rect; - int oldX2, newX2; - int oldY2, newY2; unsigned int weight; - oldX2 = oldX + oldW, newX2 = newX + newW; - oldY2 = oldY + oldH, newY2 = newY + newH; - /* Decide which resize weighting to use */ weight = ResizeWeighting(oldX, oldY, oldW, oldH, oldBW, newX, newY, newW, newH, newBW); - /* Compute intersection between old and new rects */ - rect.x1 = max(oldX, newX); - rect.y1 = max(oldY, newY); - rect.x2 = min(oldX2, newX2); - rect.y2 = min(oldY2, newY2); - RL_DEBUG_MSG("RESIZE TOPLEVEL WINDOW with gravity %i ", gravity); RL_DEBUG_MSG("%d %d %d %d %d %d %d %d %d %d\n", oldX, oldY, oldW, oldH, oldBW, newX, newY, newW, newH, newBW); @@ -830,8 +818,6 @@ FinishFrameResize(WindowPtr pWin, Bool gravity, int oldX, int oldY, unsigned int newBW) { ScreenPtr pScreen = pWin->drawable.pScreen; - RootlessWindowRec *winRec = WINREC(pWin); - int i; /* Redraw everything. FIXME: there must be times when we don't need to do this. Perhaps when top-left weighting and no gravity? */