Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xkbupdatemapfromcore(3) [centos man page]

XkbUpdateMapFromCore(3) 					   XKB FUNCTIONS					   XkbUpdateMapFromCore(3)

NAME
XkbUpdateMapFromCore - Update a local Xkb keyboard map to reflect the mapping expressed by a core format mapping SYNOPSIS
Bool XkbUpdateMapFromCore (XkbDescPtr xkb, KeyCode first_key, int num_keys, int map_width, KeySym *core_keysyms, XkbChangesPtr changes); ARGUMENTS
- xkb keyboard description to update - first_key keycode of first key description to update - num_keys number of key descriptions to update - map_width width of core protocol keymap - core_keysyms symbols in core protocol keymap - changes backfilled with changes made to Xkb DESCRIPTION
Xkb provides several functions that make it easier to apply the compatibility map to configure a client-side Xkb keyboard mapping, given a core protocol representation of part or all of a keyboard mapping. Obtain a core protocol representation of a keyboard mapping from an actual server (by using XGetKeyboardMapping, for example), a data file, or some other source. XkbUpdateMapFromCore interprets input argument information representing a keyboard map in core format to update the Xkb keyboard descrip- tion passed in xkb. Only a portion of the Xkb map is updated - the portion corresponding to keys with keycodes in the range first_key through first_key + num_keys - 1. If XkbUpdateMapFromCore is being called in response to a MappingNotify event, first_key and num_keys are reported in the MappingNotify event. core_keysyms contains the keysyms corresponding to the keycode range being updated, in core keyboard description order. map_width is the number of keysyms per key in core_keysyms. Thus, the first map_width entries in core_keysyms are for the key with keycode first_key, the next map_width entries are for key first_key + 1, and so on. In addition to modifying the Xkb keyboard mapping in xkb, XkbUpdateMapFromCore backfills the changes structure whose address is passed in changes to indicate the modifications that were made. You may then use changes in subsequent calls such as XkbSetMap, to propagate the local modifications to a server. SEE ALSO
XkbSetMap(3) X Version 11 libX11 1.6.0 XkbUpdateMapFromCore(3)

Check Out this Related Man Page

XkbVirtualModsToReal(3) 					   XKB FUNCTIONS					   XkbVirtualModsToReal(3)

NAME
XkbVirtualModsToReal - Determines the mapping of virtual modifiers to core X protocol modifiers SYNOPSIS
Bool XkbVirtualModsToReal (XkbDescPtr xkb, unsigned int virtual_mask, unsigned int *mask_rtrn); ARGUMENTS
- xkb keyboard description for input device - virtual_mask virtual modifier mask to translate - mask_rtrn backfilled with real modifiers DESCRIPTION
Xkb maintains a virtual modifier mapping, which lists the virtual modifiers associated with, or bound to, each key. The real modifiers bound to a virtual modifier always include all of the modifiers bound to any of the keys that specify that virtual modifier in their vir- tual modifier mapping. The server.vmodmap array indicates which virtual modifiers are bound to each key; each entry is a bitmask for the virtual modifier bits. The server.vmodmap array is indexed by keycode. The vmodmap and vmods members of the server map are the "master" virtual modifier definitions. Xkb automatically propagates any changes to these fields to all other fields that use virtual modifier mappings. For example, if Mod3 is bound to the Num_Lock key by the core protocol modifier mapping, and the NumLock virtual modifier is bound to they Num_Lock key by the virtual modifier mapping, Mod3 is added to the set of modifiers associated with NumLock. The virtual modifier mapping is normally updated whenever actions are automatically applied to symbols and few applications should need to change the virtual modifier mapping explicitly. Use XkbGetMap to get the virtual modifiers from the server or use XkbGetVirtualMods to update a local copy of the virtual modifiers bind- ings from the server. To set the binding of a virtual modifier to a real modifier, use XkbGetVirtualMods If the keyboard description defined by xkb includes bindings for virtual modifiers, XkbVirtualModsToReal uses those bindings to determine the set of real modifiers that correspond to the set of virtual modifiers specified in virtual_mask. The virtual_mask parameter is a mask specifying the virtual modifiers to translate; the i-th bit (0 relative) of the mask represents the i-th virtual modifier. If mask_rtrn is non-NULL, XkbVirtualModsToReal backfills it with the resulting real modifier mask. If the keyboard description in xkb does not include vir- tual modifier bindings, XkbVirtualModsToReal returns False; otherwise, it returns True. RETURN VALUES
True The XkbVirtualModsToReal function returns True if the keyboard description in xkb does include virtual modifier bindings. False The XkbVirtualModsToReal function returns False if the keyboard description in xkb does not include virtual modifier bind- ings. SEE ALSO
XkbGetMap(3), XkbGetVirtualMods(3) NOTES
It is possible for a local (client-side) keyboard description (the xkb parameter) to not contain any virtual modifier information (simply because the client has not requested it) while the server's corresponding definition may contain virtual modifier information. X Version 11 libX11 1.6.0 XkbVirtualModsToReal(3)
Man Page