]> Dogcows Code - chaz/openbox/commitdiff
fix for capslock bound to other modifiers. i think this is okay?
authorDana Jansens <danakj@orodu.net>
Tue, 5 Jun 2007 18:37:39 +0000 (18:37 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 5 Jun 2007 18:37:39 +0000 (18:37 +0000)
strip LockMask instead of what caps_lock is bound to.

openbox/modkeys.c

index 3346a88dccd2f78f021e829d9c90526cf7aeb605..356ef8865019d0c5dc2ee0cf1e947763c7dc8205 100644 (file)
@@ -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;
This page took 0.023113 seconds and 4 git commands to generate.