aboutsummaryrefslogtreecommitdiffstats
path: root/xevents.c
diff options
context:
space:
mode:
authorokan2013-11-27 16:24:17 +0000
committerokan2013-11-27 16:24:17 +0000
commiteb44ceb50fa5b47b78cb98794a8c9f6b424aa000 (patch)
treeaf260d356704a4eca9506583c2c83ea972362878 /xevents.c
parentfad4280d9453e32b642ed4aca146a524e6bb1458 (diff)
downloadcwm-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.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/xevents.c b/xevents.c
index f7f772a..0d0426d 100644
--- a/xevents.c
+++ b/xevents.c
@@ -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;
}