diff options
author | Kevin E Martin <kem@kem.org> | 2004-09-02 04:04:47 +0000 |
---|---|---|
committer | Kevin E Martin <kem@kem.org> | 2004-09-02 04:04:47 +0000 |
commit | d7fef52254126aa5897a5c58faeda1f61d5b13d8 (patch) | |
tree | 316babbf6b355c11b242c5864ee5babd02fafd71 /miext/damage | |
parent | 0e56515aa3ebc5ee8cc33213fb22b69bb4b3a0da (diff) |
Workaround for servers using rootless layer with damage (Bug #1168, TorreyXORG-6_7_99_904
T. Lyons).
Diffstat (limited to 'miext/damage')
-rwxr-xr-x | miext/damage/damage.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/miext/damage/damage.c b/miext/damage/damage.c index b4b893855..f87adb7a5 100755 --- a/miext/damage/damage.c +++ b/miext/damage/damage.c @@ -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); |