mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 05:50:04 +01:00
Fix crash on XkbSetMap
Since group_info and width are used for the key actions allocations, when modifying them we need to take care of reallocation key actions if needed.
This commit is contained in:
parent
8469bfead9
commit
fabc421962
1 changed files with 3 additions and 0 deletions
|
|
@ -2110,6 +2110,9 @@ SetKeySyms(ClientPtr client,
|
|||
}
|
||||
}
|
||||
}
|
||||
if (XkbKeyHasActions(xkb, i + req->firstKeySym))
|
||||
XkbResizeKeyActions(xkb, i + req->firstKeySym,
|
||||
XkbNumGroups(wire->groupInfo) * wire->width);
|
||||
oldMap->kt_index[0] = wire->ktIndex[0];
|
||||
oldMap->kt_index[1] = wire->ktIndex[1];
|
||||
oldMap->kt_index[2] = wire->ktIndex[2];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue