From fe38312ff65b87a03d21ac5d10618080da296145 Mon Sep 17 00:00:00 2001 From: "wettstae@gmail.com" Date: Mon, 9 Mar 2015 20:13:21 +0100 Subject: kbproto: Fix typo in XkbSARedirectSetVMods An apparent copy/paste bug in the macro XkbSARedirectSetVMods, which breaks using RedirectKey actions with virtual modifiers. Signed-off-by: Andreas Wettstein Reviewed-by: Daniel Stone Signed-off-by: Peter Hutterer --- XKBstr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/XKBstr.h b/XKBstr.h index 3449bda..893a04b 100644 --- a/XKBstr.h +++ b/XKBstr.h @@ -222,8 +222,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)),\ -- cgit v1.2.1