XkbChangeControls(3) XKB FUNCTIONS XkbChangeControls(3)

# [NAME](#NAME)

XkbChangeControls - Provides a flexible method for updating the controls in a server to match those in the changed keyboard description

# [SYNOPSIS](#SYNOPSIS)

**Bool XkbChangeControls** **(Display \*dpy,** **XkbDescPtr xkb,** **XkbControlsChangesPtr changes);**

# [ARGUMENTS](#ARGUMENTS)

[*dpy*](#dpy)

connection to X server

[*xkb*](#xkb)

keyboard description with changed xkb-&gt;ctrls

[*changes*](#changes)

which parts of xkb-&gt;ctrls have changed

# [DESCRIPTION](#DESCRIPTION)

The XkbControlsChangesRec structure allows applications to track modifications to an XkbControlsRec structure and thereby reduce the amount of traffic sent to the server. The same XkbControlsChangesRec structure may be used in several successive modifications to the same XkbControlsRec structure, then subsequently used to cause all of the changes, and only the changes, to be propagated to the server.

The *changed\_ctrls* field is a mask specifying which logical sets of data in the controls structure have been modified. In this context, modified means *set*, that is, if a value is set to the same value it previously contained, it has still been modified, and is noted as changed. Valid values for *changed\_ctrls* are any combination of the masks listed in Table 1 that have "ok" in the *changed\_ctrls* column. Setting a bit implies the corresponding data fields from the "Relevant XkbControlsRec Data Fields" column in Table 1 have been modified. The *enabled\_ctrls\_changes* field specifies which bits in the *enabled\_ctrls* field have changed. If the number of keyboard groups has changed, the *num\_groups\_changed* field is set to True.

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.

Table 1 Xkb Controls Control Control Selection Relevant Mask (which XkbControlsRec Boolean Control parameter) DataFields enabled\_ctrls bit Section AccessXFeedback XkbAccessXFeedbackMask ax\_options: XkbAX\_\*FBMask XkbAccessXFeedbackMask 10.6.3 AccessXKeys XkbAccessXKeysMask 10.6.1 AccessXTimeout XkbAccessXTimeoutMask ax\_timeout axt\_opts\_mask axt\_opts\_values axt\_ctrls\_mask axt\_ctrls\_values XkbAccessXTimeoutMask 10.6.2 AudibleBell XkbAudibleBellMask 9.2 AutoReset 10.1.2 BounceKeys XkbBounceKeysMask debounce\_delay XkbBounceKeysMask 10.6.7 Detectable- 10.3.3 Autorepeat EnabledControls XkbControlsEnabledMask enabled\_ctrls Non-Boolean Control 10.1.1 GroupsWrap XkbGroupsWrapMask groups\_wrap Non-Boolean Control 10.7.1 IgnoreGroupLock XkbIgnoreGroupLockMask 10.7.3 IgnoreLockMods XkbIgnoreLockModsMask ignore\_lock Non-Boolean Control 5.1 InternalMods XkbInternalModsMask internal Non-Boolean Control 5.1 MouseKeys XkbMouseKeysMask mk\_dflt\_btn XkbMouseKeysMask 10.5.1 MouseKeysAccel XkbMouseKeysAccelMask mk\_delay mk\_interval mk\_time\_to\_max mk\_max\_speed mk\_curve XkbMouseKeysAccelMask 10.5.2 Overlay1 XkbOverlay1Mask 10.4 Overlay2 XkbOverlay2Mask 10.4 PerKeyRepeat XkbPerKeyRepeatMask per\_key\_repeat Non-Boolean Control 10.3.1 RepeatKeys XkbRepeatKeysMask repeat\_delay XkbRepeatKeysMask 10.3 repeat\_interval SlowKeys XkbSlowKeysMask slow\_keys\_delay XkbSlowKeysMask 10.6.6 StickyKeys XkbStickyKeysMask ax\_options: XkbAX\_TwoKeysMask XkbAX\_LatchToLockMask XkbStickyKeysMask 10.6.8

Table 2 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.

Table 2 Controls Mask Bits Mask Bit which or Value changed enabled \_ctrls \_ctrls XkbRepeatKeysMask ok ok (1L&lt;&lt;0) XkbSlowKeysMask ok ok (1L&lt;&lt;1) XkbBounceKeysMask ok ok (1L&lt;&lt;2) XkbStickyKeysMask ok ok (1L&lt;&lt;3) XkbMouseKeysMask ok ok (1L&lt;&lt;4) XkbMouseKeysAccelMask ok ok (1L&lt;&lt;5) XkbAccessXKeysMask ok ok (1L&lt;&lt;6) XkbAccessXTimeoutMask ok ok (1L&lt;&lt;7) XkbAccessXFeedbackMask ok ok (1L&lt;&lt;8) XkbAudibleBellMask ok (1L&lt;&lt;9) XkbOverlay1Mask ok (1L&lt;&lt;10) XkbOverlay2Mask ok (1L&lt;&lt;11) XkbIgnoreGroupLockMask ok (1L&lt;&lt;12) XkbGroupsWrapMask ok (1L&lt;&lt;27) XkbInternalModsMask ok (1L&lt;&lt;28) XkbIgnoreLockModsMask ok (1L&lt;&lt;29) XkbPerKeyRepeatMask ok (1L&lt;&lt;30) XkbControlsEnabledMask ok (1L&lt;&lt;31) XkbAccessXOptionsMask ok ok (XkbStickyKeysMask | XkbAccessXFeedbackMask) XkbAllBooleanCtrlsMask ok (0x00001FFF) XkbAllControlsMask ok (0xF8001FFF)

If you have an Xkb description with controls that have been modified and an XkbControlsChangesRec that describes the changes that have been made, the *XkbChangeControls* function provides a flexible method for updating the controls in a server to match those in the changed keyboard description.

*XkbChangeControls* copies any controls fields specified by *changes* from the keyboard description controls structure, *xkb-&gt;ctrls*, to the server specified by *dpy*.

# [STRUCTURES](#STRUCTURES)

The XkbControlsChangesRec structure is defined as follows:

```
typedef struct _XkbControlsChanges {


    unsigned int  changed_ctrls;         /* bits indicating changed control data */


    unsigned int  enabled_ctrls_changes; /* bits indicating enabled/disabled controls */


    Bool          num_groups_changed;    /* True if number of keyboard groups changed */
} XkbControlsChangesRec,*XkbControlsChangesPtr;
```

# [SEE ALSO](#SEE_ALSO)

[**XkbChangeControls**(3)](/man/os/libx11/XkbChangeControls.3), [**XkbChangeDeviceInfo**(3)](/man/os/libx11/XkbChangeDeviceInfo.3), [**XkbChangeEnabledControls**(3)](/man/os/libx11/XkbChangeEnabledControls.3), [**XkbChangeMap**(3)](/man/os/libx11/XkbChangeMap.3), [**XkbChangeNames**(3)](/man/os/libx11/XkbChangeNames.3), [**XkbChangeTypesOfKey**(3)](/man/os/libx11/XkbChangeTypesOfKey.3)

libX11 1.8.14 X Version 11

---

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