Workaround for servers using rootless layer with damage (Bug #1168, Torrey

T. Lyons).
This commit is contained in:
Kevin E Martin 2004-09-02 04:04:47 +00:00
parent 0e56515aa3
commit d7fef52254

View File

@ -78,6 +78,14 @@ getDrawableDamageRef (DrawablePtr pDrawable)
{
ScreenPtr pScreen = pDrawable->pScreen;
#ifdef ROOTLESS_WORKAROUND
if (!((WindowPtr)pDrawable)->viewable)
{
static DamagePtr nullDamage = 0;
return &nullDamage;
}
#endif
pPixmap = 0;
if (pScreen->GetWindowPixmap)
pPixmap = (*pScreen->GetWindowPixmap) ((WindowPtr)pDrawable);