convert XkbKeycodeToKeysym to xcb

This commit is contained in:
David Hill 2012-07-15 16:23:39 -04:00 committed by Reginald Kennedy
parent 404594c487
commit 4c05d42a78

View file

@ -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;