[Xcb-commit] xcb

Jamey Sharp jamey at kemper.freedesktop.org
Sun Jul 30 20:05:02 PDT 2006


 xcb/src/xcb_out.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

New commits:
diff-tree 82b1e18f0b0bef74d5b9d30bc763d7a196866658 (from da9c538c232ea9b856370ec7fa98cfb3cbde9f86)
Author: Jamey Sharp <jamey at minilop.net>
Date:   Sun Jul 30 14:55:14 2006 -0700

    Fix Keith's 32-bit wrap fix.
    
    Issue 0, 1, or 2 syncs as needed and do not handle 16-bit wrap until
    absolutely necessary.

diff --git a/xcb/src/xcb_out.c b/xcb/src/xcb_out.c
index 9a67ad2..56e02f7 100644
--- a/xcb/src/xcb_out.c
+++ b/xcb/src/xcb_out.c
@@ -163,8 +163,8 @@ unsigned int XCBSendRequest(XCBConnectio
      * Also send sync (could use NoOp) at 32-bit wrap to avoid having
      * applications see sequence 0 as that is used to indicate
      * an error in sending the request */
-    if((req->isvoid &&
-	c->out.request == c->in.request_expected + (1 << 16) - 2) ||
+    while((req->isvoid &&
+	c->out.request == c->in.request_expected + (1 << 16) - 1) ||
        request == 0)
     {
         prefix[0] = sync.packet;


More information about the xcb-commit mailing list