Commit ac6cd20c55a9772b8e3cd975320e6418edcbb70c

Ran Benita 2020-11-23T18:49:49

x11: fix type level names missing When reading the keymap, the level names would get discarded. Regressed in 26453b84732da870f5695ee347970b337cfea9c1. Signed-off-by: Ran Benita <ran@unusedvar.com>

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/x11/keymap.c b/src/x11/keymap.c
index 087ee48..f5b368f 100644
--- a/src/x11/keymap.c
+++ b/src/x11/keymap.c
@@ -888,6 +888,7 @@ get_type_names(struct xkb_keymap *keymap, xcb_connection_t *conn,
                          wire_num_levels))
             goto fail;
 
+        type->num_level_names = type->num_levels;
         kt_level_names_iter += wire_num_levels;
         key_type_names_iter++;
         n_levels_per_type_iter++;