XkbSetXlibControls(3) XKB FUNCTIONS XkbSetXlibControls(3)

# [NAME](#NAME)

XkbSetXlibControls - Changes the state of the Library Controls

# [SYNOPSIS](#SYNOPSIS)

**unsigned int XkbSetXlibControls** **(Display \*display,** **unsigned long bits\_to\_change,** **unsigned long values\_for\_bits);**

# [ARGUMENTS](#ARGUMENTS)

[*display*](#display)

connection to X server

[*bits\_to\_change*](#bits_to_change)

selects controls to be modified

[*values\_for\_bits*](#values_for_bits)

turns selected controls [on (1)](/man/os/libx11/on.1) or off (0)

# [DESCRIPTION](#DESCRIPTION)

*XkbSetXlibControls* modifies the state of the controls selected by *bits\_to\_change;* only the controls selected by *bits\_to\_change* are modified. If the bit corresponding to a control is on in *bits\_to\_change* and also on in *values\_for\_bits,* the control is enabled. If the bit corresponding to a control is on in *bits\_to\_change* but off in *values\_for\_bits,* the control is disabled. *bits\_to\_change* should be an inclusive OR of bits from Table 1.

Table 1 Library Control Masks Library Control Mask Value XkbLC\_ForceLatin1Lookup (1 &lt;&lt; 0) XkbLC\_ConsumeLookupMods (1 &lt;&lt; 1) XkbLC\_AlwaysConsumeShiftAndLock (1 &lt;&lt; 2) XkbLC\_IgnoreNewKeyboards (1 &lt;&lt; 3) XkbLC\_ConsumeKeysOnComposeFail (1 &lt;&lt; 29) XkbLC\_ComposeLED (1 &lt;&lt; 30) XkbLC\_BeepOnComposeFail (1 &lt;&lt; 31) XkbLC\_AllControls (0xc0000007)

# [RETURN VALUES](#RETURN_VALUES)

(1 &lt;&lt; 0)

XkbLC\_ForceLatin1Lookup

(1 &lt;&lt; 1)

XkbLC\_ConsumeLookupMods

(1 &lt;&lt; 2)

XkbLC\_AlwaysConsumeShiftAndLock

(1 &lt;&lt; 3)

XkbLC\_IgnoreNewKeyboards

(1 &lt;&lt; 29)

XkbLC\_ConsumeKeysOnComposeFail

(1 &lt;&lt; 30)

XkbLC\_ComposeLED

(1 &lt;&lt; 31)

XkbLC\_BeepOnComposeFail

(0xc0000007)

XkbLC\_AllControls

libX11 1.8.14 X Version 11

---

Document: XkbSetXlibControls(3) from libx11 1.8.14-r3 (Chainguard OS)
Source: https://gitlab.freedesktop.org/xorg/lib/libx11.git
