[PATCH v4 6/7] composite: Use DamageSetReportAfterOp
ville.syrjala at nokia.com
ville.syrjala at nokia.com
Wed Jan 5 05:51:36 PST 2011
From: Ville Syrjälä <ville.syrjala at nokia.com>
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ä <ville.syrjala at nokia.com>
---
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
More information about the xorg-devel
mailing list