xinput: GetDeviceProperty-reply: add align-pad at end
authorChristian Linhart <chris@demorecorder.com>
Fri, 15 Aug 2014 18:36:16 +0000 (20:36 +0200)
committerChristian Linhart <chris@demorecorder.com>
Mon, 25 Aug 2014 11:42:55 +0000 (13:42 +0200)
commit4f7ededf36b8c6bebb369e141bf21a0a6e237cd3
tree308667c9941f9d63640960d828b6ca6426d8ab64
parent13f14416734df4a2c3415f22dac13d877d42b471
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 <switch> has to be the last item
  of a struct, request or reply, according to the xcb-xml-spec)
src/xinput.xml