Commit d7fef522 authored by Kevin E Martin's avatar Kevin E Martin
Browse files

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

    T. Lyons).
parent 0e56515a
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment