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.
This commit is contained in:
parent
13896d8f65
commit
f74487e34f
|
@ -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
|
* Also send sync (could use NoOp) at 32-bit wrap to avoid having
|
||||||
* applications see sequence 0 as that is used to indicate
|
* applications see sequence 0 as that is used to indicate
|
||||||
* an error in sending the request */
|
* an error in sending the request */
|
||||||
if((req->isvoid &&
|
while((req->isvoid &&
|
||||||
c->out.request == c->in.request_expected + (1 << 16) - 2) ||
|
c->out.request == c->in.request_expected + (1 << 16) - 1) ||
|
||||||
request == 0)
|
request == 0)
|
||||||
{
|
{
|
||||||
prefix[0] = sync.packet;
|
prefix[0] = sync.packet;
|
||||||
|
|
Loading…
Reference in New Issue