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>
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++;