diff options
author | Bert <ber.t@gmx.com> | 2011-01-18 16:38:37 +0100 |
---|---|---|
committer | Bert <ber.t@gmx.com> | 2011-01-18 16:38:37 +0100 |
commit | 22db1ed3614cbaf67bac7d24f86ebbe824188bef (patch) | |
tree | 63cd5a352a9d4e8bcbd4792ffd64be715df94a67 | |
parent | fb6411ab5c887fcd39f01d406eda21ce02f708ec (diff) |
Simplified keysym lookup
-rw-r--r-- | events.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -45,13 +45,11 @@ void event_loop(app_t *app) { void on_keypress(app_t *app, XEvent *ev) { KeySym keysym; - XKeyEvent *kev; if (!app || !ev) return; - kev = &ev->xkey; - keysym = XKeycodeToKeysym(app->win.env.dpy, (KeyCode) kev->keycode, 0); + keysym = XLookupKeysym(&ev->xkey, 0); switch (keysym) { case XK_Escape: |