From 6650f1cb953646ed85ef22a0ada692ba44fb9905 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 10 May 2020 09:20:45 +0200 Subject: Fix struct for ClientMessage event MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libaxl-events.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libaxl-events.h b/libaxl-events.h index 83f696e..ed47f3d 100644 --- a/libaxl-events.h +++ b/libaxl-events.h @@ -513,7 +513,11 @@ struct libaxl_event_client_message { uint16_t sequence_number; libaxl_window_t window; libaxl_atom_t type; - uint8_t __unused[20]; + union { + uint8_t u8[20]; + uint16_t u16[10]; + uint32_t u32[5]; + } data; }; struct libaxl_event_mapping_notify { -- cgit v1.2.3-70-g09d2