diff options
author | Daniel Martin <consume.noise@gmail.com> | 2013-10-13 13:44:40 +0200 |
---|---|---|
committer | Arnaud Fontaine <arnau@debian.org> | 2013-11-14 20:24:03 +0900 |
commit | e76dc36de885339d680e8faf8afce19250d7dcb6 (patch) | |
tree | 13b6dfb604147f9f4d8e2441430dd3d28431a4f4 /src/xkb.xml | |
parent | 0c408c53ffdde107ed8c01144cce3da427f1a45f (diff) |
xkb: Comment out intermixed fixed size fields and lists
c_client.py doesn't handle such intermixed fixed size fields and lists
correctly. Therefor comment them out.
With that change the size of the generated request structure for
ListComponents has 8 Bytes which is the same as xkbListComponentsReq
has and the server checks REQUEST_AT_LEAST_SIZE(xkbListComponentsReq).
The same goes for GetKbdByName, which results in a structure of 12
Bytes.
Signed-off-by: Daniel Martin <consume.noise@gmail.com>
Reviewed-By: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'src/xkb.xml')
-rw-r--r-- | src/xkb.xml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xkb.xml b/src/xkb.xml index a095958..8c9b067 100644 --- a/src/xkb.xml +++ b/src/xkb.xml @@ -1974,6 +1974,7 @@ authorization from the authors. <request name="ListComponents" opcode="22"> <field name="deviceSpec" type="DeviceSpec" /> <field name="maxNames" type="CARD16" /> + <!-- XXX: Intermixed fixed size fields and lists are broken <field name="keymapsSpecLen" type="CARD8" /> <list name="keymapsSpec" type="STRING8"> <fieldref>keymapsSpecLen</fieldref> @@ -1998,6 +1999,7 @@ authorization from the authors. <list name="geometrySpec" type="STRING8"> <fieldref>geometrySpecLen</fieldref> </list> + --> <reply> <field name="deviceID" type="CARD8" /> <field name="nKeymaps" type="CARD16" /> @@ -2035,6 +2037,7 @@ authorization from the authors. <field name="want" type="CARD16" mask="GBNDetail" /> <field name="load" type="BOOL" /> <pad bytes="1" /> + <!-- XXX: Intermixed fixed size fields and lists are broken <field name="keymapsSpecLen" type="CARD8" /> <list name="keymapsSpec" type="STRING8"> <fieldref>keymapsSpecLen</fieldref> @@ -2059,6 +2062,7 @@ authorization from the authors. <list name="geometrySpec" type="STRING8"> <fieldref>geometrySpecLen</fieldref> </list> + --> <reply> <field name="deviceID" type="CARD8" /> <field name="minKeyCode" type="KEYCODE" /> |