(x11) Fix binding of numpad keys

This commit is contained in:
Higor Eurípedes 2015-05-15 10:49:44 -03:00
parent 6c3bf5c27e
commit ae52f0f5c9

View File

@ -80,13 +80,12 @@ static size_t conv_utf8_utf32(uint32_t *out,
void x11_handle_key_event(XEvent *event, XIC ic, bool filter)
{
int i;
unsigned state;
unsigned state, key;
uint16_t mod = 0;
char keybuf[32] = {0};
uint32_t chars[32] = {0};
bool down = event->type == KeyPress;
unsigned key = input_keymaps_translate_keysym_to_rk(XLookupKeysym(&event->xkey, 0));
int num = 0;
KeySym keysym = 0;
@ -111,6 +110,7 @@ void x11_handle_key_event(XEvent *event, XIC ic, bool filter)
#endif
}
key = input_keymaps_translate_keysym_to_rk(keysym);
state = event->xkey.state;
if (state & ShiftMask)