[Xcb] [PATCH proto 2/2] screensaver: Use enum and mask attributes

Daniel Martin consume.noise at gmail.com
Thu May 23 13:35:03 PDT 2013


Signed-off-by: Daniel Martin <consume.noise at gmail.com>
---
 src/screensaver.xml | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/screensaver.xml b/src/screensaver.xml
index 74d4ba7..7449c0a 100644
--- a/src/screensaver.xml
+++ b/src/screensaver.xml
@@ -75,14 +75,14 @@ <request name="QueryInfo" opcode="1">
       <field type="CARD32" name="ms_until_server"/>
       <field type="CARD32" name="ms_since_user_input"/>
       <field type="CARD32" name="event_mask" />
-      <field type="BYTE" name="kind"/>  <!-- enum Kind -->
+      <field type="BYTE" name="kind" enum="Kind"/>
       <pad bytes="7"/>
     </reply>
   </request>
 
   <request name="SelectInput" opcode="2">
     <field type="DRAWABLE" name="drawable"/>
-    <field type="CARD32" name="event_mask" />   <!-- enum Event -->
+    <field type="CARD32" name="event_mask" mask="Event"/>
   </request>
 
   <request name="SetAttributes" opcode="3">
@@ -92,7 +92,7 @@ <request name="SetAttributes" opcode="3">
     <field type="CARD16" name="width"/>
     <field type="CARD16" name="height"/>
     <field type="CARD16" name="border_width"/>
-    <field type="BYTE" name="class"/>   <!-- enum XCBWindowClass -->
+    <field type="BYTE" name="class" enum="WindowClass"/>
     <field type="CARD8" name="depth"/>
     <field type="VISUALID" name="visual"/>
     <valueparam value-mask-type="CARD32"
@@ -113,11 +113,11 @@ <request name="Suspend" opcode="5">
   <!-- Events -->
 
   <event name="Notify" number="0">
-    <field type="BYTE" name="state"/>    <!-- enum State -->
+    <field type="BYTE" name="state" enum="State"/>
     <field type="TIMESTAMP" name="time"/>
     <field type="WINDOW" name="root"/>
     <field type="WINDOW" name="window"/>
-    <field type="BYTE" name="kind"/>     <!-- enum Kind -->
+    <field type="BYTE" name="kind" enum="Kind"/>
     <field type="BOOL" name="forced"/>
     <pad bytes="14"/>
   </event>
-- 
1.8.2.1



More information about the Xcb mailing list