Fix bug #7261: events do not signal the end of replies for that sequence number.
authorJamey Sharp <jamey@minilop.net>
Wed, 13 Sep 2006 19:30:11 +0000 (12:30 -0700)
committerJamey Sharp <jamey@minilop.net>
Mon, 18 Sep 2006 21:49:22 +0000 (14:49 -0700)
src/xcb_in.c

index d513cdd..d4dbb3f 100644 (file)
@@ -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))