forked from AuroraMiddleware/gtk
wayland: Fix keycode->keyval mapping
We were looping over the levels, but not using the current level value to obtain the keymap entries. Oops. Fixes: #5277
This commit is contained in:
parent
8a3f1a1fa1
commit
1894a8960e
@ -203,7 +203,7 @@ gdk_wayland_keymap_get_entries_for_keycode (GdkKeymap *keymap,
|
|||||||
{
|
{
|
||||||
const xkb_keysym_t *syms;
|
const xkb_keysym_t *syms;
|
||||||
int num_syms;
|
int num_syms;
|
||||||
num_syms = xkb_keymap_key_get_syms_by_level (xkb_keymap, hardware_keycode, layout, 0, &syms);
|
num_syms = xkb_keymap_key_get_syms_by_level (xkb_keymap, hardware_keycode, layout, level, &syms);
|
||||||
if (keys)
|
if (keys)
|
||||||
{
|
{
|
||||||
(*keys)[i].keycode = hardware_keycode;
|
(*keys)[i].keycode = hardware_keycode;
|
||||||
|
Loading…
Reference in New Issue
Block a user