XkbChangeDeviceInfo(3)
π XkbChangeDeviceInfo(3) π
okay bestie, welcome to the XKB FUNCTIONS manual page, section 3 β this is the one about XkbChangeDeviceInfo. Itβs giving βtell the server what changed on this deviceβ energy, and honestly? iconic. π¦
πΈ NAME πΈ
XkbChangeDeviceInfo β update the serverβs description of a device with the changes noted in an XkbDeviceChangesRec. π
β¨ SYNOPSIS β¨
Bool XkbChangeDeviceInfo (Display *dpy, XkbDeviceInfoPtr device_info,
XkbDeviceChangesPtr changes);
π ARGUMENTS π
dpyβ connection to X server. literally the link to the server, bestie. πdevice_infoβ local copy of device state and configuration. your lil local snapshot, periodt. π«Άchangesβ note specifying changes indevice_info. the receipt of whatβs different. π§Ύ
π¦ DESCRIPTION π¦
XkbChangeDeviceInfo updates the serverβs description of the device specified in device_info->device_spec with the changes specified in changes and contained in device_info. The update is made by an XkbSetDeviceInfo request.
No cap: itβs taking your local info plus the tracked changes and updating that server-side description via that request. β¨
π STRUCTURES π
You can track changes to an Xkb extension device by listening for XkbDeviceExtensionNotify events and accumulating the changes in an XkbDeviceChangesRec structure. Then the changes noted in the structure can be used in subsequent operations to update either a server configuration or a local copy of an Xkb extension device configuration. π
The changes structure is defined as follows β copy this exactly, bestie, because structs do not play:
typedef struct _XkbDeviceChanges {
unsigned int changed; /* bits indicating what has changed */
unsigned short first_btn; /* number of first button which changed, if any */
unsigned short num_btns; /* number of buttons that have changed */
XkbDeviceLedChangesRec leds;
} XkbDeviceChangesRec,*XkbDeviceChangesPtr;
π₯ SEE ALSO π₯
XkbSetDeviceInfo(3)β go read the sibling page, iykyk. π
Thatβs the whole vibe check from the footer: X Version 11, libX11 1.8.14, and this page is XkbChangeDeviceInfo(3). mwah, bye bestie ππ
π¦ where this page comes from
- alpine 3.24: libx11-doc 1.8.14-r0 Β· X11
- arch rolling: libx11 1.8.14-1 Β· MIT AND X11
- nixos 26.05: libx11 1.8.14
- nixpkgs unstable: libx11 1.8.14
- Copyright (c) 1999, Oracle and/or its affiliates
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms