[PATCH] xkb: Add support for genKeyEvent flag output
Andreas Wettstein
wettstein509 at solnet.ch
Sat Feb 15 08:36:35 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>
---
xkb/xkbtext.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/xkb/xkbtext.c b/xkb/xkbtext.c
index 5d5f842..41e82ce 100644
--- a/xkb/xkbtext.c
+++ b/xkb/xkbtext.c
@@ -1114,6 +1114,8 @@ CopyActionMessageArgs(XkbDescPtr xkb, XkbAction *action, char *buf, int *sz)
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