[PATCH] Call flush callback chain when we flush client buffer due to overflow

Kristian Høgsberg krh at bitplanet.net
Thu Jul 29 15:53:34 PDT 2010


This case was missing and could cause corruption if we flush damage events
to a client before the driver gets to submit the rendering from the
callback chain.

Signed-off-by: Kristian Høgsberg <krh at bitplanet.net>
---
 os/io.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/os/io.c b/os/io.c
index b5f98b7..e2df2e3 100644
--- a/os/io.c
+++ b/os/io.c
@@ -819,6 +819,10 @@ WriteToClient (ClientPtr who, int count, const void *__buf)
 	  CriticalOutputPending = FALSE;
 	  NewOutputPending = FALSE;
 	}
+
+	if (FlushCallback)
+	    CallCallbacks(&FlushCallback, NULL);
+
 	return FlushClient(who, oc, buf, count);
     }
 
-- 
1.7.2




More information about the xorg mailing list