[PATCH] kbproto: Fix typo in XkbSARedirectSetVMods

wettstae at gmail.com wettstae at gmail.com
Mon Mar 9 12:13:21 PDT 2015


An apparent copy/paste bug in the macro XkbSARedirectSetVMods, which breaks
using RedirectKey actions with virtual modifiers.

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)),\
-- 
2.2.1



More information about the xorg-devel mailing list