diff options
author | Daniel Stone <daniel@fooishbar.org> | 2008-04-25 19:54:29 +0300 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2009-01-22 15:08:57 +1100 |
commit | feb757f384382c7782ceac55f99d54c7caadbd9d (patch) | |
tree | 550c2383f9e2dd668d05495f20aea02b2e1ecaf8 /include | |
parent | b5f49382fe48f0a762d9a15fb10a7d7e1183fc8d (diff) |
XKB: Sanitise vmods for redirected keys
Turn two unsigned chars into one unsigned int for both vmods and the
vmod mask. As a bonus, remove broken unused accessor macro for setting
the vmods.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/xkbstr.h | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/include/xkbstr.h b/include/xkbstr.h index 0a49ee1c4..ec19b30c2 100644 --- a/include/xkbstr.h +++ b/include/xkbstr.h @@ -194,23 +194,10 @@ typedef struct _XkbRedirectKeyAction { unsigned char new_key; unsigned char mods_mask; unsigned char mods; - /* FIXME: Make this an int. */ - unsigned char vmods_mask0; - unsigned char vmods_mask1; - unsigned char vmods0; - unsigned char vmods1; + unsigned int vmods_mask; + unsigned int vmods; } XkbRedirectKeyAction; -#define XkbSARedirectVMods(a) ((((unsigned int)(a)->vmods1)<<8)|\ - ((unsigned int)(a)->vmods0)) -/* FIXME: This is blatantly not setting vmods. Yeesh. */ -#define XkbSARedirectSetVMods(a,m) (((a)->vmods_mask1=(((m)>>8)&0xff)),\ - ((a)->vmods_mask0=((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)),\ - ((a)->vmods_mask0=((m)&0xff))) - typedef struct _XkbDeviceBtnAction { unsigned char type; unsigned char flags; |