mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-30 21:53:25 +00:00
rootless: ROOTLESS_TRACK_DAMAGE is never set, so unifdef it.
Signed-off-by: Jamey Sharp <jamey@minilop.net> Cc: Jeremy Huddleston <jeremyhu@apple.com> Cc: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
This commit is contained in:
parent
ccdf156890
commit
35ce892a70
6 changed files with 5 additions and 87 deletions
|
|
@ -180,11 +180,6 @@ static void
|
|||
RootlessDestroyFrame(WindowPtr pWin, RootlessWindowPtr winRec)
|
||||
{
|
||||
SCREENREC(pWin->drawable.pScreen)->imp->DestroyFrame(winRec->wid);
|
||||
|
||||
#ifdef ROOTLESS_TRACK_DAMAGE
|
||||
RegionUninit(&winRec->damage);
|
||||
#endif
|
||||
|
||||
free(winRec);
|
||||
SETWINREC(pWin, NULL);
|
||||
}
|
||||
|
|
@ -341,15 +336,6 @@ RootlessPositionWindow(WindowPtr pWin, int x, int y)
|
|||
|
||||
winRec->pixmap->devPrivate.ptr = winRec->pixelData;
|
||||
SetPixmapBaseToScreen(winRec->pixmap, x - bw, y - bw);
|
||||
|
||||
#ifdef ROOTLESS_TRACK_DAMAGE
|
||||
// Move damaged region to correspond to new window position
|
||||
if (RegionNotEmpty(&winRec->damage)) {
|
||||
RegionTranslate(&winRec->damage,
|
||||
x - bw - winRec->x,
|
||||
y - bw - winRec->y);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -381,10 +367,6 @@ RootlessInitializeFrame(WindowPtr pWin, RootlessWindowRec *winRec)
|
|||
winRec->width = d->width + 2*bw;
|
||||
winRec->height = d->height + 2*bw;
|
||||
winRec->borderWidth = bw;
|
||||
|
||||
#ifdef ROOTLESS_TRACK_DAMAGE
|
||||
RegionNull(&winRec->damage);
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue