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 <[email protected]>
---
 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

_______________________________________________
[email protected]: X.Org support
Archives: http://lists.freedesktop.org/archives/xorg
Info: http://lists.freedesktop.org/mailman/listinfo/xorg
Your subscription address: [email protected]

Reply via email to