XkbFreeControls(3)
β¨ NAME β¨
Okay bestie, this is XkbFreeControls(3) from the XKB FUNCTIONS manual β and it does exactly what it says on the tin: XkbFreeControls frees the memory used by the ctrls member of an XkbDescRec structure. Periodt. π
π¦ SYNOPSIS π¦
void XkbFreeControls (XkbDescPtr xkb, unsigned int which, Bool
free_all);
π ARGUMENTS π
xkbβ the Xkb description where weβre freeing controls components. Thatβs the main character here.whichβ a mask of the components ofctrlsto free. Very βpick your battlesβ energy.free_allβTruemeans free everything plusctrlsitself. Not me using the nuclear option, but okay! π
π DESCRIPTION π
XkbFreeControls frees the specified components of the ctrls field in the xkb keyboard description and sets the corresponding structure component values to NULL or zero. Lowkey tidy-up behavior, and we love that.
The which mask specifies the fields of ctrls to be freed and can contain any of the controls components specified in Table 1.
Table 1 shows the actual values for the individual mask bits used to select controls for modification and to enable and disable the control. Note that the same mask bit is used to specify general modifications to the parameters used to configure the control (which), and to enable and disable the control (enabled_ctrls). The anomalies in the table (no ok in column) are for controls that have no configurable attributes; and for controls that are not boolean controls and therefore cannot be enabled or disabled. No cap, thatβs just how the bits are built. π§
π Table 1 Controls Mask Bits π
Hereβs every row, bestie β columns are Mask Bit, which or changed_ctrls, enabled_ctrls, and Value:
XkbRepeatKeysMaskβwhich or changed_ctrls: ok;enabled_ctrls: ok; Value:(1L<<0)XkbSlowKeysMaskβwhich or changed_ctrls: ok;enabled_ctrls: ok; Value:(1L<<1)XkbBounceKeysMaskβwhich or changed_ctrls: ok;enabled_ctrls: ok; Value:(1L<<2)XkbStickyKeysMaskβwhich or changed_ctrls: ok;enabled_ctrls: ok; Value:(1L<<3)XkbMouseKeysMaskβwhich or changed_ctrls: ok;enabled_ctrls: ok; Value:(1L<<4)XkbMouseKeysAccelMaskβwhich or changed_ctrls: ok;enabled_ctrls: ok; Value:(1L<<5)XkbAccessXKeysMaskβwhich or changed_ctrls: ok;enabled_ctrls: ok; Value:(1L<<6)XkbAccessXTimeoutMaskβwhich or changed_ctrls: ok;enabled_ctrls: ok; Value:(1L<<7)XkbAccessXFeedbackMaskβwhich or changed_ctrls: ok;enabled_ctrls: ok; Value:(1L<<8)XkbAudibleBellMaskβwhich or changed_ctrls: β (blank, nook);enabled_ctrls: ok; Value:(1L<<9)XkbOverlay1Maskβwhich or changed_ctrls: β (blank, nook);enabled_ctrls: ok; Value:(1L<<10)XkbOverlay2Maskβwhich or changed_ctrls: β (blank, nook);enabled_ctrls: ok; Value:(1L<<11)XkbIgnoreGroupLockMaskβwhich or changed_ctrls: β (blank, nook);enabled_ctrls: ok; Value:(1L<<12)XkbGroupsWrapMaskβwhich or changed_ctrls: ok;enabled_ctrls: β (blank, nook); Value:(1L<<27)XkbInternalModsMaskβwhich or changed_ctrls: ok;enabled_ctrls: β (blank, nook); Value:(1L<<28)XkbIgnoreLockModsMaskβwhich or changed_ctrls: ok;enabled_ctrls: β (blank, nook); Value:(1L<<29)XkbPerKeyRepeatMaskβwhich or changed_ctrls: ok;enabled_ctrls: β (blank, nook); Value:(1L<<30)XkbControlsEnabledMaskβwhich or changed_ctrls: ok;enabled_ctrls: β (blank, nook); Value:(1L<<31)XkbAccessXOptionsMaskβwhich or changed_ctrls: ok;enabled_ctrls: ok; Value:(XkbStickyKeysMask | XkbAccessXFeedbackMask)XkbAllBooleanCtrlsMaskβwhich or changed_ctrls: β (blank, nook);enabled_ctrls: ok; Value:(0x00001FFF)XkbAllControlsMaskβwhich or changed_ctrls: ok;enabled_ctrls: β (blank, nook); Value:(0xF8001FFF)
If free_all is True, XkbFreeControls frees every non-NULL structure component in the controls, frees the XkbControlsRec structure referenced by the ctrls member of xkb, and sets ctrls to NULL. Thatβs the full send, no crumbs. π₯
And thatβs the vibe check: X Version 11 β’ libX11 1.8.14 β’ XkbFreeControls(3) β no extra date on this page, so Iβm not making one up, 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