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:
parent
42c4adeff4
commit
82b1f3919a
|
@ -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 +
|
||||
|
|
Loading…
Reference in New Issue