summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRan Benita <ran@unusedvar.com>2020-11-23 18:49:49 +0200
committerRan Benita <ran@unusedvar.com>2020-11-23 18:49:49 +0200
commitac6cd20c55a9772b8e3cd975320e6418edcbb70c (patch)
tree4eb98b70af0e808690c8cee557de3cd2aa50d101 /src
parent95f8ff8355989bda9d4796577ccc4477ab5552d1 (diff)
downloadlibxkbcommon-ac6cd20c55a9772b8e3cd975320e6418edcbb70c.tar.gz
libxkbcommon-ac6cd20c55a9772b8e3cd975320e6418edcbb70c.tar.bz2
libxkbcommon-ac6cd20c55a9772b8e3cd975320e6418edcbb70c.zip
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>
Diffstat (limited to 'src')
-rw-r--r--src/x11/keymap.c1
1 files changed, 1 insertions, 0 deletions
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++;