[Xcb] [PATCH 1/7] Only use the low-order 7 bits of the type code in determining event types.
Alex Plotnick
shrike at netaxs.com
Wed Feb 29 08:59:51 PST 2012
---
src/event.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/event.c b/src/event.c
index 73acf1f..2ab7eac 100644
--- a/src/event.c
+++ b/src/event.c
@@ -10,7 +10,7 @@
PyObject *
xpybEvent_create(xpybConn *conn, xcb_generic_event_t *e)
{
- unsigned char opcode = e->response_type;
+ unsigned char opcode = e->response_type & 0x7f;
PyObject *shim, *event, *type = (PyObject *)&xpybEvent_type;
if (opcode < conn->events_len && conn->events[opcode] != NULL)
--
1.7.6
More information about the Xcb
mailing list