diff options
author | okan | 2013-11-27 16:24:17 +0000 |
---|---|---|
committer | okan | 2013-11-27 16:24:17 +0000 |
commit | eb44ceb50fa5b47b78cb98794a8c9f6b424aa000 (patch) | |
tree | af260d356704a4eca9506583c2c83ea972362878 /xevents.c | |
parent | fad4280d9453e32b642ed4aca146a524e6bb1458 (diff) | |
download | cwm-eb44ceb50fa5b47b78cb98794a8c9f6b424aa000.tar.gz |
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 '')
-rw-r--r-- | xevents.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: xevents.c,v 1.93 2013/11/27 00:01:23 okan Exp $ + * $OpenBSD: xevents.c,v 1.94 2013/11/27 16:24:17 okan Exp $ */ /* @@ -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; } |