From: Carlos Garnacho Date: Tue, 5 Oct 2010 16:03:22 +0000 (+0200) Subject: Handle XGE events with the "send event" flag X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82b1f3919a82a730f6b2f952d4090fe15702694e;hp=42c4adeff4a6aedfba30e22f71800c1b73942923;p=free-sw%2Fxcb%2Flibxcb 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 --- 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 +