From 4c05d42a781ae4b32994cbb9270f4da3ea82ebb8 Mon Sep 17 00:00:00 2001 From: David Hill Date: Sun, 15 Jul 2012 16:23:39 -0400 Subject: [PATCH 1/1] convert XkbKeycodeToKeysym to xcb --- spectrwm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spectrwm.c b/spectrwm.c index 29849f5..495ed5b 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -6697,12 +6697,12 @@ expose(xcb_expose_event_t *e) void keypress(xcb_key_press_event_t *e) { - KeySym keysym; + xcb_keysym_t keysym; struct key *kp; - keysym = XkbKeycodeToKeysym(display, (KeyCode)e->detail, 0, 0); + keysym = xcb_key_press_lookup_keysym(syms, e, 0); - DNPRINTF(SWM_D_EVENT, "keypress: %u\n", e->detail); + DNPRINTF(SWM_D_EVENT, "keypress: %u %u\n", e->detail, keysym); if ((kp = key_lookup(CLEANMASK(e->state), keysym)) == NULL) return; -- 1.7.10.4