X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fxcb_out.c;h=2494ef34d4f9c465319db7d60de147a0c1946390;hb=5437032c7dee85da99b612a707fa94d012d40282;hp=c4ef73764f66e2223507d507dff633666f00077d;hpb=e5458e477db95e1e064e46ca28245ecd51b5b524;p=free-sw%2Fxcb%2Flibxcb diff --git a/src/xcb_out.c b/src/xcb_out.c index c4ef737..2494ef3 100644 --- a/src/xcb_out.c +++ b/src/xcb_out.c @@ -136,7 +136,7 @@ unsigned int XCBSendRequest(XCBConnection *c, int flags, struct iovec *vector, c while(c->out.writing) pthread_cond_wait(&c->out.cond, &c->iolock); - if(req->isvoid && c->out.request == c->in.request_expected + (1 << 16) - 1) + if(req->isvoid && c->out.request == c->in.request_expected + (1 << 16) - 2) { prefix[0] = sync.packet; request = ++c->out.request;