summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Linhart <chris@demorecorder.com>2014-09-04 10:53:20 +0200
committerChristian Linhart <chris@demorecorder.com>2014-11-03 11:23:22 +0100
commitb1d0917005207986b8302d1500d798bff7c9c7b7 (patch)
tree14e933d717ba7a4a5b93b34f907b3997601f7320
parent2b54d78b66808646db0401809e7061dd35f26aa7 (diff)
xinput: req XIChangeProperty: replace bitcase with case
Message-ID: <1409820801-43629-9-git-send-email-chris@demorecorder.com> Patch-Thread-Subject: [Xcb] xinput: xml-fixes possible with new generator features Patch-Set: XmlFixesNewGenerator Patch-Number: proto 09/10 Patch-Version: V1 Signed-off-by: Christian Linhart <chris@DemoRecorder.com>
-rw-r--r--src/xinput.xml16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/xinput.xml b/src/xinput.xml
index d350753..d472fc9 100644
--- a/src/xinput.xml
+++ b/src/xinput.xml
@@ -1998,28 +1998,24 @@ in struct DeviceTimeCoord.
<field type="CARD32" name="num_items" />
<switch name="items">
<fieldref>format</fieldref>
- <!-- <bitcase> is not correct, this would need <cases>s.
- It works in that case, because PropertyFormat items can be
- distinguished exactly as their values don't have equal bits.
- -->
- <bitcase>
+ <case>
<enumref ref="PropertyFormat">8Bits</enumref>
<list type="CARD8" name="data8">
<fieldref>num_items</fieldref>
</list>
- </bitcase>
- <bitcase>
+ </case>
+ <case>
<enumref ref="PropertyFormat">16Bits</enumref>
<list type="CARD16" name="data16">
<fieldref>num_items</fieldref>
</list>
- </bitcase>
- <bitcase>
+ </case>
+ <case>
<enumref ref="PropertyFormat">32Bits</enumref>
<list type="CARD32" name="data32">
<fieldref>num_items</fieldref>
</list>
- </bitcase>
+ </case>
</switch>
</request>