summaryrefslogtreecommitdiff
path: root/miext/damage
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <sandmann@daimi.au.dk>2005-03-22 17:49:14 +0000
committerSøren Sandmann Pedersen <sandmann@daimi.au.dk>2005-03-22 17:49:14 +0000
commitcc95e597b51f06e835c6a9def1bc6681029bf41e (patch)
tree4ac438cad5f044ceb7143086fa45ff7f8095168a /miext/damage
parent1d68ede0eed62b48354a954a62fca98aa2ce9d2d (diff)
Tue Mar 22 12:47:16 2005 Søren Sandmann <sandmann@redhat.com>
Only validate the source if it is a viewable window. Stops the cursor flickering when it is above an unviewable window.
Diffstat (limited to 'miext/damage')
-rwxr-xr-xmiext/damage/damage.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/miext/damage/damage.c b/miext/damage/damage.c
index b15b5b31c..913c47b5d 100755
--- a/miext/damage/damage.c
+++ b/miext/damage/damage.c
@@ -787,8 +787,12 @@ damageCopyPlane(DrawablePtr pSrc,
/* The driver will only call SourceValidate() when pSrc != pDst,
* but the software sprite (misprite.c) always need to know when a
* drawable is copied so it can remove the sprite. See #1030. */
- if ((pSrc == pDst) && pSrc->pScreen->SourceValidate)
+ if ((pSrc == pDst) && pSrc->pScreen->SourceValidate &&
+ pSrc->type == DRAWABLE_WINDOW &&
+ ((WindowPtr)pSrc)->viewable)
+ {
(*pSrc->pScreen->SourceValidate) (pSrc, srcx, srcy, width, height);
+ }
if (checkGCDamage (pDst, pGC))
{