summaryrefslogtreecommitdiff
path: root/miext
diff options
context:
space:
mode:
Diffstat (limited to 'miext')
-rwxr-xr-xmiext/damage/damage.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/miext/damage/damage.c b/miext/damage/damage.c
index f87adb7a5..963780f70 100755
--- a/miext/damage/damage.c
+++ b/miext/damage/damage.c
@@ -78,16 +78,12 @@ getDrawableDamageRef (DrawablePtr pDrawable)
{
ScreenPtr pScreen = pDrawable->pScreen;
+ pPixmap = 0;
+ if (pScreen->GetWindowPixmap
#ifdef ROOTLESS_WORKAROUND
- if (!((WindowPtr)pDrawable)->viewable)
- {
- static DamagePtr nullDamage = 0;
- return &nullDamage;
- }
+ && ((WindowPtr)pDrawable)->viewable
#endif
-
- pPixmap = 0;
- if (pScreen->GetWindowPixmap)
+ )
pPixmap = (*pScreen->GetWindowPixmap) ((WindowPtr)pDrawable);
if (!pPixmap)