x11: fix type level names missing
authorRan Benita <ran@unusedvar.com>
Mon, 23 Nov 2020 16:49:49 +0000 (18:49 +0200)
committerRan Benita <ran@unusedvar.com>
Mon, 23 Nov 2020 16:49:49 +0000 (18:49 +0200)
When reading the keymap, the level names would get discarded.
Regressed in 26453b84732da870f5695ee347970b337cfea9c1.

Signed-off-by: Ran Benita <ran@unusedvar.com>
src/x11/keymap.c

index 087ee48..f5b368f 100644 (file)
@@ -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++;