summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2010-10-05 18:03:22 +0200
committerJamey Sharp <jamey@minilop.net>2011-04-12 12:57:37 -0700
commit82b1f3919a82a730f6b2f952d4090fe15702694e (patch)
treed3e3e5a0daa0002cde9ef4afa8ffef4d20436c52
parent42c4adeff4a6aedfba30e22f71800c1b73942923 (diff)
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>
-rw-r--r--src/xcb_in.c2
1 files changed, 1 insertions, 1 deletions
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 +