[PATCH] composite: only update window contents when using automatic redirection

Jesse Barnes jbarnes at virtuousgeek.org
Tue Sep 7 12:48:32 PDT 2010


Brian pointed this out awhile back but the fix was never merged.  So
here's a real patch.  Would be nice to get into 1.9.x as well if it
proves ok in master.

This change can significantly improve performance on machines with low
memory bandwidth.

Reported-by: "Brian J. Tarricone" <brian at tarricone.org>
Signed-off-by: Jesse Barnes <jbarnes at virtuousgeek.org>

diff --git a/composite/compwindow.c b/composite/compwindow.c
index 160b764..c17d998 100644
--- a/composite/compwindow.c
+++ b/composite/compwindow.c
@@ -713,7 +713,7 @@ compWindowUpdate (WindowPtr pWin)
 
     for (pChild = pWin->lastChild; pChild; pChild = pChild->prevSib)
 	compWindowUpdate (pChild);
-    if (pWin->redirectDraw != RedirectDrawNone)
+    if (pWin->redirectDraw == RedirectDrawAutomatic)
     {
 	CompWindowPtr	cw = GetCompWindow(pWin);
 


More information about the xorg-devel mailing list