From 82b1f3919a82a730f6b2f952d4090fe15702694e Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Tue, 5 Oct 2010 18:03:22 +0200 Subject: [PATCH] Handle XGE events with the "send event" flag This patch is necessary so xcb reads the payload after the message for GenericEvents with the 0x80 flag turned on. Signed-off-by: Carlos Garnacho Signed-off-by: Jamey Sharp --- src/xcb_in.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xcb_in.c b/src/xcb_in.c index ca75169..501e719 100644 --- a/src/xcb_in.c +++ b/src/xcb_in.c @@ -171,7 +171,7 @@ static int read_packet(xcb_connection_t *c) } /* XGE events may have sizes > 32 */ - if (genrep.response_type == XCB_XGE_EVENT) + if ((genrep.response_type & 0x7f) == XCB_XGE_EVENT) eventlength = genrep.length * 4; buf = malloc(length + eventlength + -- 2.34.1