summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Wettstein <wettstein509@solnet.ch>2014-02-15 17:35:29 +0100
committerAlan Coopersmith <alan.coopersmith@oracle.com>2016-01-01 18:39:03 -0800
commita594dde52b7903feab839f5cfe08755753aca20e (patch)
tree38ef15a945882966e8ea294043c734540c3d1f39 /src
parent6223ec08213cb8cc546418690c27e0fdd4f0addd (diff)
Add support for genKeyEvent flag
ActionMessage has an optional flag genKeyEvent. This change makes sure this flag is printed when it is set. Signed-off-by: Andreas Wettstein <wettstein509@solnet.ch> Reviewed-By: Ran Benita <ran234@gmail.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src')
-rw-r--r--src/xkbtext.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xkbtext.c b/src/xkbtext.c
index bf992e4..c8b8276 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;
}