mirror of
https://github.com/SwallowOS/xorg_lib_libxcb
synced 2025-11-07 16:22:00 +08:00
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:
committed by
Jamey Sharp
parent
42c4adeff4
commit
82b1f3919a
@@ -171,7 +171,7 @@ static int read_packet(xcb_connection_t *c)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* XGE events may have sizes > 32 */
|
/* 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;
|
eventlength = genrep.length * 4;
|
||||||
|
|
||||||
buf = malloc(length + eventlength +
|
buf = malloc(length + eventlength +
|
||||||
|
|||||||
Reference in New Issue
Block a user