NAME
XkbResizeKeyType - Change the number of levels in a key typeSYNOPSIS
Status
XkbResizeKeyType (XkbDescPtr xkb, int
type_ndx, int map_count, Bool
want_preserve, int new_num_lvls);
ARGUMENTS
- xkb
- keyboard description containing client map to update
- type_ndx
- index in xkb->map->types of type to change
- map_count
- total # of map entries needed for the type
- want_preserve
- True => list of preserved modifiers is necessary
- new_num_lvls
- new max # of levels for type
DESCRIPTION
XkbResizeKeyType changes the type specified by xkb->map->types[type_ndx], and reallocates the symbols and actions bound to all keys that use the type, if necessary. XkbResizeKeyType updates only the local copy of the types in xkb; to update the server's copy for the physical device, use XkbSetMap or XkbChangeMap after calling XkbResizeKeyType.RETURN VALUES
- Success
- The XkbResizeKeyType function returns Success if type_ndx specifies a legal type, new_num_lvls is greater than zero and map_count is positive.
DIAGNOSTICS
- BadAlloc
- Unable to allocate storage
- BadValue
- An argument is out of range
SEE ALSO
XkbChangeMap(3), XkbSetMap(3)libX11 1.8.4 | X Version 11 |