[PATCH] kbproto: Fix typo in XkbSARedirectSetVMods

walter harms wharms at bfs.de
Tue Mar 10 06:44:58 PDT 2015



Am 09.03.2015 20:13, schrieb wettstae at gmail.com:
> An apparent copy/paste bug in the macro XkbSARedirectSetVMods, which breaks
> using RedirectKey actions with virtual modifiers.

And it uses vmods1 in place of vmods_mask1

re,
 wh

> 
> Signed-off-by: Andreas Wettstein <wettstae at gmail.com>
> ---
>  XKBstr.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/XKBstr.h b/XKBstr.h
> index 5a0c596..403c002 100644
> --- a/XKBstr.h
> +++ b/XKBstr.h
> @@ -225,8 +225,8 @@ typedef struct	_XkbRedirectKeyAction {
>  
>  #define	XkbSARedirectVMods(a)		((((unsigned int)(a)->vmods1)<<8)|\
>  					((unsigned int)(a)->vmods0))
> -#define	XkbSARedirectSetVMods(a,m)	(((a)->vmods_mask1=(((m)>>8)&0xff)),\
> -					 ((a)->vmods_mask0=((m)&0xff)))
> +#define	XkbSARedirectSetVMods(a,m)	(((a)->vmods1=(((m)>>8)&0xff)),\
> +					 ((a)->vmods0=((m)&0xff)))
>  #define	XkbSARedirectVModsMask(a)	((((unsigned int)(a)->vmods_mask1)<<8)|\
>  					((unsigned int)(a)->vmods_mask0))
>  #define	XkbSARedirectSetVModsMask(a,m)	(((a)->vmods_mask1=(((m)>>8)&0xff)),\


More information about the xorg-devel mailing list