[PATCH libxcb 8/8] Handle XGE events with the "send event" flag

carlos at lanedo.com carlos at lanedo.com
Tue Oct 5 09:03:22 PDT 2010


From: Carlos Garnacho <carlosg at gnome.org>

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>
---
 src/xcb_in.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/xcb_in.c b/src/xcb_in.c
index 57d7e01..e9e967b 100644
--- a/src/xcb_in.c
+++ b/src/xcb_in.c
@@ -154,7 +154,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 +
-- 
1.7.0.4



More information about the xorg-devel mailing list