[PATCH] xkb: Add support for genKeyEvent flag output

Ran Benita ran234 at gmail.com
Mon Feb 17 12:04:05 PST 2014


On Sat, Feb 15, 2014 at 05:36:35PM +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>

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