Workaround for servers using rootless layer with damage (Bug #1168, Torrey
T. Lyons).
This commit is contained in:
parent
0e56515aa3
commit
d7fef52254
|
@ -78,6 +78,14 @@ 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)
|
||||||
pPixmap = (*pScreen->GetWindowPixmap) ((WindowPtr)pDrawable);
|
pPixmap = (*pScreen->GetWindowPixmap) ((WindowPtr)pDrawable);
|
||||||
|
|
Loading…
Reference in New Issue