diff options
Diffstat (limited to 'miext/rootless/rootlessCommon.c')
-rw-r--r-- | miext/rootless/rootlessCommon.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/miext/rootless/rootlessCommon.c b/miext/rootless/rootlessCommon.c index f91cfb432..b0476d711 100644 --- a/miext/rootless/rootlessCommon.c +++ b/miext/rootless/rootlessCommon.c @@ -305,16 +305,11 @@ RootlessDamageRegion(WindowPtr pWindow, RegionPtr pRegion) if (in == rgnIN) { /* clip totally contains pRegion */ -#ifdef ROOTLESS_TRACK_DAMAGE - RegionUnion(&winRec->damage, - &winRec->damage, (pRegion)); -#else SCREENREC(pWindow->drawable.pScreen)->imp-> DamageRects(winRec->wid, RegionNumRects(pRegion), RegionRects(pRegion), -winRec->x, -winRec->y); -#endif RootlessQueueRedisplay(pTop->drawable.pScreen); goto out; @@ -331,16 +326,11 @@ RootlessDamageRegion(WindowPtr pWindow, RegionPtr pRegion) RegionNull(&clipped); RegionIntersect(&clipped, &pWindow->borderClip, pRegion); -#ifdef ROOTLESS_TRACK_DAMAGE - RegionUnion(&winRec->damage, - &winRec->damage, (pRegion)); -#else SCREENREC(pWindow->drawable.pScreen)->imp-> DamageRects(winRec->wid, RegionNumRects(&clipped), RegionRects(&clipped), -winRec->x, -winRec->y); -#endif RegionUninit(&clipped); @@ -415,32 +405,7 @@ RootlessDamageRect(WindowPtr pWindow, int x, int y, int w, int h) void RootlessRedisplay(WindowPtr pWindow) { -#ifdef ROOTLESS_TRACK_DAMAGE - - RootlessWindowRec *winRec = WINREC(pWindow); - ScreenPtr pScreen = pWindow->drawable.pScreen; - - RootlessStopDrawing(pWindow, FALSE); - - if (RegionNotEmpty(&winRec->damage)) { - RL_DEBUG_MSG("Redisplay Win 0x%x, %i x %i @ (%i, %i)\n", - pWindow, winRec->width, winRec->height, - winRec->x, winRec->y); - - // move region to window local coords - RegionTranslate(&winRec->damage, - -winRec->x, -winRec->y); - - SCREENREC(pScreen)->imp->UpdateRegion(winRec->wid, &winRec->damage); - - RegionEmpty(&winRec->damage); - } - -#else /* !ROOTLESS_TRACK_DAMAGE */ - RootlessStopDrawing(pWindow, TRUE); - -#endif } |