[PATCH] libxkbfile: Add support for genKeyEvent flag

Andreas Wettstein wettstein509 at solnet.ch
Sat Feb 15 08:35:29 PST 2014


ActionMessage has an optional flag genKeyEvent.  This change makes sure this
flag is printed when it is set.

Signed-off-by: Andreas Wettstein <wettstein509 at solnet.ch>
---
 src/xkbtext.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/xkbtext.c b/src/xkbtext.c
index 4905f8b..013cdef 100644
--- a/src/xkbtext.c
+++ b/src/xkbtext.c
@@ -1262,6 +1262,8 @@ CopyActionMessageArgs(Display *dpy, XkbDescPtr xkb, XkbAction *action,
     TryCopyStr(buf, tbuf, sz);
     snprintf(tbuf, sizeof(tbuf), ",data[5]=0x%02x", act->message[5]);
     TryCopyStr(buf, tbuf, sz);
+    if (act->flags & XkbSA_MessageGenKeyEvent)
+        TryCopyStr(buf, ",genKeyEvent", sz);
     return True;
 }
 
-- 
1.8.3.1



More information about the xorg-devel mailing list