[gtk/fix-wayland-keycode-mapping] wayland: Fix keycode->keyval mapping
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/fix-wayland-keycode-mapping] wayland: Fix keycode->keyval mapping
- Date: Wed, 19 Oct 2022 19:46:50 +0000 (UTC)
commit 1894a8960e3bacd94cc6fb4d831888dca5d61bf5
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Oct 19 15:35:12 2022 -0400
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]