[PATCH] libxkbfile: Add support for genKeyEvent flag

Ran Benita ran234 at gmail.com
Mon Feb 17 11:51:29 PST 2014


On Sat, Feb 15, 2014 at 05:35:29PM +0100, Andreas Wettstein wrote:
> 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>

Reviewed-By: Ran Benita <ran234 at gmail.com>

Ran
> ---
>  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