From: Jamey Sharp Date: Wed, 13 Sep 2006 19:30:11 +0000 (-0700) Subject: Fix bug #7261: events do not signal the end of replies for that sequence number. X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3cc0ddf0e6b72ba553ebfc2b9126d62ef4013bd3;p=free-sw%2Fxcb%2Flibxcb Fix bug #7261: events do not signal the end of replies for that sequence number. --- diff --git a/src/xcb_in.c b/src/xcb_in.c index d513cdd..d4dbb3f 100644 --- a/src/xcb_in.c +++ b/src/xcb_in.c @@ -108,8 +108,8 @@ static int read_packet(XCBConnection *c) } c->in.request_completed = c->in.request_read - 1; } - if(genrep.response_type != XCBReply) /* error or event */ - c->in.request_completed = c->in.request_read; /* XXX: does event/error imply no more replies? */ + if(genrep.response_type == XCBError) + c->in.request_completed = c->in.request_read; while(c->in.pending_replies && XCB_SEQUENCE_COMPARE (c->in.pending_replies->request, <=, c->in.request_completed))