[Xcb] [PATCH proto 09/10] xinput: req XIChangeProperty: replace bitcase with case

Christian Linhart chris at demorecorder.com
Thu Sep 4 01:53:20 PDT 2014


---
 src/xinput.xml | 16 ++++++----------
 1 file changed, 6 insertions(+), 10 deletions(-)

diff --git a/src/xinput.xml b/src/xinput.xml
index 9a12f4a..0ca22ab 100644
--- a/src/xinput.xml
+++ b/src/xinput.xml
@@ -1962,36 +1962,32 @@ <request name="XIChangeProperty" opcode="57">
         <field type="CARD8"    name="mode" enum="PropMode" />
         <field type="CARD8"    name="format" enum="PropertyFormat" />
         <field type="ATOM"     name="property" />
         <field type="ATOM"     name="type" />
         <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>
 
     <!-- XIDeleteProperty -->
 
     <request name="XIDeleteProperty" opcode="58">
         <field type="DeviceId" name="deviceid" altenum="Device" />
-- 
2.0.1



More information about the Xcb mailing list