about summary refs log tree commit diff
path: root/xevents.c
diff options
context:
space:
mode:
authorokan <okan>2013-11-27 16:24:17 +0000
committerokan <okan>2013-11-27 16:24:17 +0000
commitabf52049b9e93e026c9299f65f326b975fd2f2cc (patch)
tree0215ae8c3bb9d0a994bd78d435e94fd888f25506 /xevents.c
parent250f98bf1552ebbff28ff4d9c7b853687065d476 (diff)
downloadcwm-abf52049b9e93e026c9299f65f326b975fd2f2cc.tar.gz
cwm-abf52049b9e93e026c9299f65f326b975fd2f2cc.tar.xz
cwm-abf52049b9e93e026c9299f65f326b975fd2f2cc.zip
Remove the option to bind a key by keycode with brackets; it never
worked (and no one complained!).  While it's fairly easy to fix, users
should be using keysym names and not keycodes.

Discussed at length months ago with todd@, matthieu@ and Owain.
Diffstat (limited to 'xevents.c')
-rw-r--r--xevents.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/xevents.c b/xevents.c
index a1fe019..f89198c 100644
--- a/xevents.c
+++ b/xevents.c
@@ -275,9 +275,7 @@ xev_handle_keypress(XEvent *ee)
 		if ((kb->modmask | modshift) != e->state)
 			continue;
 
-		if ((kb->keycode != 0 && kb->keysym == NoSymbol &&
-		    kb->keycode == e->keycode) || kb->keysym ==
-		    (modshift == 0 ? keysym : skeysym))
+		if (kb->keysym == (modshift == 0 ? keysym : skeysym))
 			break;
 	}