From 1894a8960e3bacd94cc6fb4d831888dca5d61bf5 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 19 Oct 2022 15:35:12 -0400 Subject: [PATCH] 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 --- gdk/wayland/gdkkeys-wayland.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdk/wayland/gdkkeys-wayland.c b/gdk/wayland/gdkkeys-wayland.c index 1892a36b21..22b8cb0199 100644 --- a/gdk/wayland/gdkkeys-wayland.c +++ b/gdk/wayland/gdkkeys-wayland.c @@ -203,7 +203,7 @@ gdk_wayland_keymap_get_entries_for_keycode (GdkKeymap *keymap, { const xkb_keysym_t *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) { (*keys)[i].keycode = hardware_keycode;