From: Ville Syrjälä <[email protected]>

Use the "report after" damage mode for marking the automatically
redirected as damaged. Avoids a premature window tree update triggered
by compSourceValidate eg. during a CopyArea request. If the window is
marked as damaged before the CopyArea has actaully happened, the window
tree update will copy stale data to the parent.

Signed-off-by: Ville Syrjälä <[email protected]>
---
v4: New patch

 composite/compalloc.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/composite/compalloc.c b/composite/compalloc.c
index 93571ee..c140d47 100644
--- a/composite/compalloc.c
+++ b/composite/compalloc.c
@@ -127,6 +127,9 @@ compRedirectWindow (ClientPtr pClient, WindowPtr pWin, int 
update)
            free(cw);
            return BadAlloc;
        }
+
+       DamageSetReportAfterOp (cw->damage, TRUE);
+
        if (wasMapped)
        {
            DisableMapUnmapEvents (pWin);
-- 
1.7.2.2

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to