From: David Hill Date: Sun, 15 Jul 2012 20:23:39 +0000 (-0400) Subject: convert XkbKeycodeToKeysym to xcb X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;h=4c05d42a781ae4b32994cbb9270f4da3ea82ebb8;p=spectrwm.git convert XkbKeycodeToKeysym to xcb --- 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;