[Xcb-commit] src
Jamey Sharp
jamey at kemper.freedesktop.org
Tue Apr 12 12:57:54 PDT 2011
src/xcb_in.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 82b1f3919a82a730f6b2f952d4090fe15702694e
Author: Carlos Garnacho <carlosg at gnome.org>
Date: Tue Oct 5 18:03:22 2010 +0200
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 at gnome.org>
Signed-off-by: Jamey Sharp <jamey at minilop.net>
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 +
More information about the xcb-commit
mailing list