First set of documentation updates.

Include more correct fix for rootless interaction with damage (Bug #1168,
    Keith Packard).
This commit is contained in:
Kevin E Martin 2004-09-03 16:18:23 +00:00
parent d7fef52254
commit b2135e589b

View File

@ -78,16 +78,12 @@ 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)
if (pScreen->GetWindowPixmap
#ifdef ROOTLESS_WORKAROUND
&& ((WindowPtr)pDrawable)->viewable
#endif
)
pPixmap = (*pScreen->GetWindowPixmap) ((WindowPtr)pDrawable);
if (!pPixmap)