(Input) Fix shift release in xkb

This commit is contained in:
Jean-André Santoni 2017-03-13 00:52:42 +01:00
parent f4103b4074
commit 0b05fdf0b5

View file

@ -164,14 +164,14 @@ int handle_xkb(int code, int value)
if (value)
num_syms = xkb_state_key_get_syms(xkb_state, xk_code, &syms);
if (!syms)
return -1;
if (value > 0)
xkb_state_update_key(xkb_state, xk_code, XKB_KEY_DOWN);
else
xkb_state_update_key(xkb_state, xk_code, XKB_KEY_UP);
if (!syms)
return -1;
/* Build mod state. */
for (i = 0; i < MOD_MAP_SIZE; i++)
{