NAME
XkbChangeMap - Update only partial components of a keyboard descrip‐ tion, modify the appropriate fields in the server and map components of a local copy of the keyboard description SYNOPSIS Bool XkbChangeMap (Display *dpy, XkbDescPtr xkb, XkbMapChangesPtr changes); ARGUMENTS
- dpy connection to X server
- xkb description from which new values are taken
- changes identifies component parts to update DESCRIPTION To update only partial components of a keyboard description, modify the appropriate fields in the server and map components of a local copy of the keyboard description, then call XkbChangeMap with an XkbMapChanges‐ Rec structure indicating which components have changed. XkbChangeMap copies any components specified by the changes structure from the keyboard description, xkb, to the X server specified by dpy. If any components specified by changes are not present in the xkb parameter, XkbChangeMap returns False. Otherwise, it sends a request to the server and returns True. XkbChangeMap can generate BadAlloc, BadLength, and BadValue protocol errors. RETURN VALUES True The XkbChangeMap function returns True if the components specified by changes are present in the xkb parameter. False The XkbChangeMap function returns False if the compo‐ nents specified by changes are not present in the xkb parameter. STRUCTURES Use the XkbMapChangesRec structure to identify and track partial modi‐ fications to the mapping components and to reduce the amount of traffic between the server and clients. typedef struct XkbMapChanges { unsigned short changed; /∗ identifies valid components in structure */ KeyCode minkeycode; /∗ lowest numbered keycode for device */ KeyCode maxkeycode; /∗ highest numbered keycode for device */ unsigned char firsttype; /∗ index of first key type modified */
unsigned char numtypes; /∗ # types modified */ KeyCode firstkeysym; /∗ first key whose keysymmap changed */
unsigned char numkeysyms; /∗ # keysymmap entries changed */ KeyCode firstkeyact; /∗ first key whose keyacts entry changed */
unsigned char numkeyacts; /∗ # keyacts entries changed */ KeyCode firstkeybehavior; /∗ first key whose behaviors changed */
unsigned char numkeybehaviors; /∗ # behaviors entries changed */ KeyCode firstkeyexplicit; /∗ first key whose explicit entry changed */
unsigned char numkeyexplicit; /∗ # explicit entries changed */ KeyCode firstmodmapkey; /∗ first key whose modmap entry changed */
unsigned char nummodmapkeys; /∗ # modmap entries changed */ KeyCode firstvmodmapkey; /∗ first key whose vmodmap changed */
unsigned char numvmodmapkeys; /∗ # vmodmap entries changed */ unsigned char pad1; /∗ reserved */ unsigned short vmods; /∗ mask indicating which vmods changed */ } XkbMapChangesRec,*XkbMapChangesPtr; DIAGNOSTICS BadAlloc Unable to allocate storage BadLength The length of a request is shorter or longer than that required to minimally contain the arguments BadValue An argument is out of range X Version 11 libX11 1.6.5 XkbChangeMap(3)