summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-06-05 18:37:39 +0000
committerDana Jansens <danakj@orodu.net>2007-06-05 18:37:39 +0000
commitb1c209c174f96d2492cf43596788351aa2d44475 (patch)
treec4cab5f6e431cf493b57591e9832b582d60e24b6 /openbox
parent4548d40c0d04f17ffd188666a1e2655566784c50 (diff)
fix for capslock bound to other modifiers. i think this is okay?
strip LockMask instead of what caps_lock is bound to.
Diffstat (limited to 'openbox')
-rw-r--r--openbox/modkeys.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/openbox/modkeys.c b/openbox/modkeys.c
index 3346a88d..356ef886 100644
--- a/openbox/modkeys.c
+++ b/openbox/modkeys.c
@@ -108,7 +108,10 @@ guint modkeys_only_modifier_masks(guint mask)
{
mask &= ALL_MASKS;
/* strip off these lock keys. they shouldn't affect key bindings */
- mask &= ~modkeys_key_to_mask(OB_MODKEY_KEY_CAPSLOCK);
+ mask &= ~LockMask; /* use the LockMask, not what capslock is bound to,
+ because you could bind it to something else and it
+ should work as that modifier then. i think capslock
+ is weird in xkb. */
mask &= ~modkeys_key_to_mask(OB_MODKEY_KEY_NUMLOCK);
mask &= ~modkeys_key_to_mask(OB_MODKEY_KEY_SCROLLLOCK);
return mask;