Index: damage.c =================================================================== RCS file: /cvs/xorg/xc/programs/Xserver/miext/damage/damage.c,v retrieving revision 1.9 diff -u -d -b -w -r1.9 damage.c --- damage.c 14 Aug 2004 07:12:37 -0000 1.9 +++ damage.c 25 Aug 2004 01:06:52 -0000 @@ -69,6 +69,8 @@ #define pixmapDamage(pPixmap) damagePixPriv(pPixmap) +static DamagePtr nullDamage = 0; + static DamagePtr * getDrawableDamageRef (DrawablePtr pDrawable) { @@ -78,6 +80,9 @@ { ScreenPtr pScreen = pDrawable->pScreen; + if (!((WindowPtr)pDrawable)->viewable) + return &nullDamage; + pPixmap = 0; if (pScreen->GetWindowPixmap) pPixmap = (*pScreen->GetWindowPixmap) ((WindowPtr)pDrawable);