summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2010-12-18 20:42:27 +0000
committerDaniel Stone <daniel@fooishbar.org>2010-12-20 15:15:31 +0000
commita2f4a6cab5fa27284daed515f2a594ac2602935a (patch)
tree5b2fcd9ae9dc319602f15c58c8ce2022ee80353b /src
parent75ff427d41fc10d00b780c965c289fc02c81aaac (diff)
Handle GenericEvents with the "send event" flag set
With XGE 1.1 and above, GenericEvents may be sent with the 0x80 flag set, so make xcb handles these correctly, reading the payload of GenericEvents even if the flag is set. Signed-off-by: Carlos Garnacho <carlosg@gnome.org> Reviewed-by: Daniel Stone <daniel@fooishbar.org> Reviewed-by: Peter Harris <pharris@opentext.com>
Diffstat (limited to 'src')
-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 6dd358c..61b0edc 100644
--- a/src/xcb_in.c
+++ b/src/xcb_in.c
@@ -143,7 +143,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 +