diff options
author | sabetts <sabetts> | 2004-05-20 06:13:52 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2004-05-20 06:13:52 +0000 |
commit | c9b79a47d169f3358cfd9e644d38cd86658fb3de (patch) | |
tree | c135a3c259b45adfbb8e756df520c26298c8f8af /src/data.h | |
parent | 6f0409e582148c7611133cb1116c934ff312b204 (diff) | |
download | ratpoison-c9b79a47d169f3358cfd9e644d38cd86658fb3de.zip |
* src/input.c (rp_mask_to_x11_mask): handle the shift modifier
(x11_mask_to_rp_mask): likewise
(keysym_to_keycode_mod): Make sure lower != keysym before adding
the shift mask.
(keysym_to_string): handle the shift modifier. use 's' for super
instead of 'S'
(cook_keycode): keep the shift modifier if XLookupString didn't
gobble it.
* src/data.h (RP_SHIFT_MASK): new define
* src/actions.c (parse_keydesc): parse the shift modifier change
super to 's' from 'S'.
Diffstat (limited to 'src/data.h')
-rw-r--r-- | src/data.h | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -261,11 +261,12 @@ struct rp_child_info /* These defines should be used to specify the modifier mask for keys and they are translated into the X11 modifier mask when the time comes to compare modifier masks. */ -#define RP_CONTROL_MASK 1 -#define RP_META_MASK 2 -#define RP_ALT_MASK 4 -#define RP_SUPER_MASK 8 -#define RP_HYPER_MASK 16 +#define RP_SHIFT_MASK 1 +#define RP_CONTROL_MASK 2 +#define RP_META_MASK 4 +#define RP_ALT_MASK 8 +#define RP_SUPER_MASK 16 +#define RP_HYPER_MASK 32 struct modifier_info { |