First set of documentation updates.
Include more correct fix for rootless interaction with damage (Bug #1168, Keith Packard).
This commit is contained in:
parent
d7fef52254
commit
b2135e589b
|
@ -78,16 +78,12 @@ getDrawableDamageRef (DrawablePtr pDrawable)
|
||||||
{
|
{
|
||||||
ScreenPtr pScreen = pDrawable->pScreen;
|
ScreenPtr pScreen = pDrawable->pScreen;
|
||||||
|
|
||||||
#ifdef ROOTLESS_WORKAROUND
|
|
||||||
if (!((WindowPtr)pDrawable)->viewable)
|
|
||||||
{
|
|
||||||
static DamagePtr nullDamage = 0;
|
|
||||||
return &nullDamage;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
pPixmap = 0;
|
pPixmap = 0;
|
||||||
if (pScreen->GetWindowPixmap)
|
if (pScreen->GetWindowPixmap
|
||||||
|
#ifdef ROOTLESS_WORKAROUND
|
||||||
|
&& ((WindowPtr)pDrawable)->viewable
|
||||||
|
#endif
|
||||||
|
)
|
||||||
pPixmap = (*pScreen->GetWindowPixmap) ((WindowPtr)pDrawable);
|
pPixmap = (*pScreen->GetWindowPixmap) ((WindowPtr)pDrawable);
|
||||||
|
|
||||||
if (!pPixmap)
|
if (!pPixmap)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user