Manual Page Result
0
Command: XkbChangeControls | Section: 3 | Source: OpenBSD | File: XkbChangeControls.3
XkbChangeControls(3) XKB FUNCTIONS XkbChangeControls(3)
NAME
XkbChangeControls - Provides a flexible method for updating the con-
trols in a server to match those in the changed keyboard description
SYNOPSIS
Bool XkbChangeControls (Display *dpy, XkbDescPtr xkb, XkbCon-
trolsChangesPtr changes);
ARGUMENTS
dpy connection to X server
xkb keyboard description with changed xkb->ctrls
changes
which parts of xkb->ctrls have changed
DESCRIPTION
The XkbControlsChangesRec structure allows applications to track modi-
fications 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 XkbControl-
sRec 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 Ta-
ble 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.
c s s s s l l l l l l l l l l l l l l l l l l l l lw(1.5i) lw(1.5i) l
lw(1.5i) l. Table 1 Xkb Controls _ Control Control
Selection Relevant Mask (which XkbControl-
sRec Boolean Control parameter) DataFields en-
abled_ctrls bit Section _ T{ AccessXFeedback T} T{ XkbAccessX-
FeedbackMask T} T{ ax_options:
XkbAX_*FBMask T} T{ XkbAccessXFeedbackMask T} 10.6.3 T{ Ac-
cessXKeys T} T{ XkbAccessXKeysMask T} 10.6.1 T{ AccessX-
Timeout T} T{ XkbAccessXTimeoutMask T} T{ ax_timeout axt_opts_mask
axt_opts_values axt_ctrls_mask axt_ctrls_values T} T{ XkbAccessX-
TimeoutMask T} 10.6.2 T{ AudibleBell T} T{ XkbAudible-
BellMask T} 9.2 T{ AutoReset T} 10.1.2 T{ BounceKeys
T} T{ XkbBounceKeysMask T} debounce_delay T{ XkbBounceKeysMask
T} 10.6.7 T{ Detectable- T} 10.3.3 T{ Autorepeat T}
T{ EnabledControls T} T{ XkbControlsEnabledMask T} en-
abled_ctrls T{ Non-Boolean Control T} 10.1.1 T{ GroupsWrap T} T{
XkbGroupsWrapMask T} groups_wrap T{ Non-Boolean Control
T} 10.7.1 T{ IgnoreGroupLock T} T{ XkbIgnoreGroupLockMask
T} 10.7.3 T{ IgnoreLockMods T} T{ XkbIgnoreLockModsMask T} ig-
nore_lock T{ Non-Boolean Control T} 5.1 T{ InternalMods T} T{
XkbInternalModsMask T} internal T{ Non-Boolean Control T} 5.1 T{
MouseKeys T} T{ XkbMouseKeysMask T} mk_dflt_btn T{ Xkb-
MouseKeysMask T} 10.5.1 T{ MouseKeysAccel T} T{ XkbMouseKeysAccel-
Mask T} T{ mk_delay mk_interval mk_time_to_max mk_max_speed mk_curve
T} T{ XkbMouseKeysAccelMask T} 10.5.2 T{ Overlay1 T} T{
XkbOverlay1Mask T} 10.4 T{ Overlay2 T} T{ XkbOverlay2Mask
T} 10.4 T{ PerKeyRepeat T} T{ XkbPerKeyRepeatMask T} per_key_re-
peat T{ Non-Boolean Control T} 10.3.1 T{ RepeatKeys T} T{ Xkb-
RepeatKeysMask T} repeat_delay T{ XkbRepeatKeysMask T} 10.3
repeat_interval T{ SlowKeys T} T{ XkbSlowKeysMask
T} slow_keys_delay T{ XkbSlowKeysMask T} 10.6.6 T{ StickyKeys
T} T{ XkbStickyKeysMask T} T{ ax_options:
XkbAX_TwoKeysMask
XkbAX_LatchToLockMask T} T{ XkbStickyKeysMask T} 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 dis-
abled.
c s s s l l l l l l l l l l l l. Table 2 Controls Mask Bits _ Mask
Bit which or Value changed enabled
_ctrls _ctrls _ XkbRepeatKeysMask ok ok (1L<<0) Xkb-
SlowKeysMask ok ok (1L<<1) Xkb-
BounceKeysMask ok ok (1L<<2) XkbStick-
yKeysMask ok ok (1L<<3) XkbMouseKeysMask ok ok (1L<<4)
XkbMouseKeysAccelMask ok ok (1L<<5) XkbAc-
cessXKeysMask ok ok (1L<<6) XkbAccessXTimeout-
Mask ok ok (1L<<7) XkbAccessXFeedbackMask ok ok (1L<<8)
XkbAudibleBellMask ok (1L<<9) XkbOver-
lay1Mask ok (1L<<10) XkbOverlay2Mask ok (1L<<11)
XkbIgnoreGroupLockMask ok (1L<<12) XkbGroupsWrap-
Mask ok (1L<<27) XkbInternalModsMask ok (1L<<28) XkbIg-
noreLockModsMask ok (1L<<29) XkbPerKeyRepeat-
Mask ok (1L<<30) XkbControlsEnabledMask ok (1L<<31) Xk-
bAccessXOptionsMask ok ok (XkbStickyKeysMask |
XkbAccessXFeedbackMask) XkbAllBooleanCtrls-
Mask ok (0x00001FFF) XkbAllControls-
Mask 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 up-
dating 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->ctrls, to the server
specified by dpy.
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
XkbChangeControls(3), XkbChangeDeviceInfo(3), XkbChangeEnabledCon-
trols(3), XkbChangeMap(3), XkbChangeNames(3), XkbChangeTypesOfKey(3)
X Version 11 libX11 1.8.10 XkbChangeControls(3)