summaryrefslogtreecommitdiff
path: root/src/data.h
diff options
context:
space:
mode:
authorsabetts <sabetts>2004-05-20 06:13:52 +0000
committersabetts <sabetts>2004-05-20 06:13:52 +0000
commitc9b79a47d169f3358cfd9e644d38cd86658fb3de (patch)
treec135a3c259b45adfbb8e756df520c26298c8f8af /src/data.h
parent6f0409e582148c7611133cb1116c934ff312b204 (diff)
downloadratpoison-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.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/data.h b/src/data.h
index 25bd889..8cc4038 100644
--- a/src/data.h
+++ b/src/data.h
@@ -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
{