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 <carlosg@gnome.org>
Signed-off-by: Jamey Sharp <jamey@minilop.net>
This commit is contained in:
Carlos Garnacho 2010-10-05 18:03:22 +02:00 committed by Jamey Sharp
parent 42c4adeff4
commit 82b1f3919a

View File

@ -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 +