X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fxcb_out.c;h=56e02f78e3c69f8ea9ed28e76dc1162e4c24b7aa;hb=f74487e34fd61d11a501c07030f8fd7ed8caeb1c;hp=9a67ad245d16e3302c0bc70a6368f46e8e825519;hpb=db2504130bc450bd328830060cb3a243dd06b52f;p=free-sw%2Fxcb%2Flibxcb diff --git a/src/xcb_out.c b/src/xcb_out.c index 9a67ad2..56e02f7 100644 --- a/src/xcb_out.c +++ b/src/xcb_out.c @@ -163,8 +163,8 @@ unsigned int XCBSendRequest(XCBConnection *c, int flags, struct iovec *vector, c * 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;