summaryrefslogtreecommitdiff
path: root/src/actions.c
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/actions.c
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/actions.c')
-rw-r--r--src/actions.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/actions.c b/src/actions.c
index 8a004d9..5321ed3 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -620,6 +620,10 @@ parse_keydesc (char *s)
}
else if (!strcmp (token, "S"))
{
+ p->state |= RP_SHIFT_MASK;
+ }
+ else if (!strcmp (token, "s"))
+ {
p->state |= RP_SUPER_MASK;
}
else if (!strcmp (token, "H"))