mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2025-12-20 02:20:17 +01:00
xkb: Fix key type level names
Fixed invalid level names count for key types without level names. Signed-off-by: Pierre Le Marre <dev@wismill.eu> Part-of: <https://gitlab.freedesktop.org/xorg/lib/libx11/-/merge_requests/292>
This commit is contained in:
parent
ff409a48f9
commit
369c6a8065
1 changed files with 1 additions and 1 deletions
|
|
@ -501,7 +501,7 @@ XkbSetNames(Display *dpy,
|
|||
BufAlloc(char *, tmp, XkbPaddedSize(nLvlTypes));
|
||||
type = &xkb->map->types[firstLvlType];
|
||||
for (i = 0; i < nLvlTypes; i++, type++) {
|
||||
*tmp++ = type->num_levels;
|
||||
*tmp++ = (type->level_names == NULL) ? 0 : type->num_levels;
|
||||
}
|
||||
type = &xkb->map->types[firstLvlType];
|
||||
for (i = 0; i < nLvlTypes; i++, type++) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue