[Xcb] [PATCH proto 08/10] xinput: rep GetDeviceProperty: replace bitcase with case

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


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

diff --git a/src/xinput.xml b/src/xinput.xml
index 361afb8..9a12f4a 100644
--- a/src/xinput.xml
+++ b/src/xinput.xml
@@ -1332,38 +1332,34 @@ <request name="GetDeviceProperty" opcode="39">
             <field type="CARD32" name="bytes_after" />
             <field type="CARD32" name="num_items" />
             <field type="CARD8"  name="format" enum="PropertyFormat" />
             <field type="CARD8"  name="device_id" />
             <pad bytes="10" />
             <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>
                     <pad align="4" />
-                </bitcase>
-                <bitcase>
+                </case>
+                <case>
                     <enumref ref="PropertyFormat">16Bits</enumref>
                     <list type="CARD16" name="data16">
                         <fieldref>num_items</fieldref>
                     </list>
                     <pad align="4" />
-                </bitcase>
-                <bitcase>
+                </case>
+                <case>
                     <enumref ref="PropertyFormat">32Bits</enumref>
                     <list type="CARD32" name="data32">
                         <fieldref>num_items</fieldref>
                     </list>
-                </bitcase>
+                </case>
             </switch>
         </reply>
     </request>
 
     <!-- ⋅⋅⋅ Requests (v2.0) ⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅⋅ -->
 
     <!-- XIQueryPointer -->
-- 
2.0.1



More information about the Xcb mailing list