From 4f7ededf36b8c6bebb369e141bf21a0a6e237cd3 Mon Sep 17 00:00:00 2001 From: Christian Linhart Date: Fri, 15 Aug 2014 20:36:16 +0200 Subject: [PATCH] xinput: GetDeviceProperty-reply: add align-pad at end reasons: * all X11-replies must have a length which is a multiple of 4 bytes * bitcases "8Bits" and "16bits" may have a length which is not a multiple of 4-bytes but they start on a 4-byte aligned position. Therefore the unpadded end of the request may not be 4-byte aligned * Therefore this requires a 4-byte align-pad. notes: * The align pad had to be added in each relevant bitcase because adding it after the switch would cause the generator to abort. (which is OK because a has to be the last item of a struct, request or reply, according to the xcb-xml-spec) --- src/xinput.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xinput.xml b/src/xinput.xml index e0d887a..d6932ba 100644 --- a/src/xinput.xml +++ b/src/xinput.xml @@ -1086,12 +1086,14 @@ authorization from the authors. num_items + 16Bits num_items + 32Bits -- 2.34.1