Wed Mar 16 16:17:43 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.
This commit is contained in:
Søren Sandmann Pedersen 2005-03-16 21:25:43 +00:00
parent 226c0907d4
commit 82f5a12752

View File

@ -742,9 +742,13 @@ damageCopyArea(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)
(*pSrc->pScreen->SourceValidate) (pSrc, srcx, srcy, width, height);
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))
{
BoxRec box;