summary refs log tree commit diff
path: root/conf.c
diff options
context:
space:
mode:
authoroga <oga>2008-06-17 23:40:33 +0000
committeroga <oga>2008-06-17 23:40:33 +0000
commit4f2d4724c961aac55558069973f8a20bf01d8338 (patch)
tree274432e36f535ac87a4e355edf5c87ee7cdf5af0 /conf.c
parent19ba704ee3b16bcf4a29c223c5796a7f63fa6b6d (diff)
downloadcwm-4f2d4724c961aac55558069973f8a20bf01d8338.tar.gz
cwm-4f2d4724c961aac55558069973f8a20bf01d8338.tar.xz
cwm-4f2d4724c961aac55558069973f8a20bf01d8338.zip
Ignore caps lock and numlock for keyboard bindings. The way Xlib makes
you do this is ugly. Also remove mod2 (numlock) and mod3 (odd) from the
list of keybinding modifiers. They don't make much sense here.

based on a heavily modified diff from Martynas.

ok okan.
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/conf.c b/conf.c
index f05390c..1767d14 100644
--- a/conf.c
+++ b/conf.c
@@ -323,14 +323,6 @@ conf_bindname(struct conf *c, char *name, char *binding)
 	    strchr(name, 'M') < strchr(name, '-'))
 		current_binding->modmask |= Mod1Mask;
 
-	if (strchr(name, '2') != NULL &&
-	    strchr(name, '2') < strchr(name, '-'))
-		current_binding->modmask |= Mod2Mask;
-
-	if (strchr(name, '3') != NULL &&
-	    strchr(name, '3') < strchr(name, '-'))
-		current_binding->modmask |= Mod3Mask;
-
 	if (strchr(name, '4') != NULL &&
 	    strchr(name, '4') < strchr(name, '-'))
 		current_binding->modmask |= Mod4Mask;