From 70d5b2d027a3a28e2b5051f94e8d339224fd4435 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 19 Jun 2020 17:28:09 +0200 Subject: Add support for synthetic events MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libaxl_receive.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libaxl_receive.c b/libaxl_receive.c index 2d79f64..797ba06 100644 --- a/libaxl_receive.c +++ b/libaxl_receive.c @@ -245,6 +245,7 @@ libaxl_receive(LIBAXL_CONTEXT *restrict ctx, union libaxl_input *restrict msgp, } code = *(uint8_t *)inbuf; + code &= 0x7F; /* Synthetic events have the highest bit set. */ if (code == LIBAXL_REPLY) { n = (uint64_t)ntohl(*(uint32_t *)&inbuf[4]); -- cgit v1.2.3-70-g09d2