[Xcb] [PATCH proto 2/2] xkb: Fix key type map entry field order

Ran Benita ran234 at gmail.com
Tue Jul 23 03:33:47 PDT 2013


In fact, unlike the deleted comment says, both Xlib and the server use
the order as specified in the protocol spec:
http://www.x.org/releases/current/doc/kbproto/xkbproto.html#appD::Requests
(Search for KB_KTMAPENTRY).

Also see struct xkbKTMapEntryWireDesc in
/usr/include/X11/extensions/XKBproto.h

Signed-off-by: Ran Benita <ran234 at gmail.com>
---
 src/xkb.xml | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/xkb.xml b/src/xkb.xml
index ca3a8b2..9bd326d 100644
--- a/src/xkb.xml
+++ b/src/xkb.xml
@@ -410,12 +410,8 @@ authorization from the authors.
 
 	<struct name="KTMapEntry">
 		<field name="active" type="BOOL" />
-		<!-- Xlib uses a different arrangement of fields
 		<field name="mods_mask" type="CARD8" mask="ModMask" />
 		<field name="level" type="CARD8" />
-		-->
-		<field name="level" type="CARD8" />
-		<field name="mods_mask" type="CARD8" mask="ModMask" />
 		<field name="mods_mods" type="CARD8" mask="ModMask" />
 		<field name="mods_vmods" type="CARD16" mask="VMod" />
 		<pad bytes="2" />
-- 
1.8.3.3



More information about the Xcb mailing list