from small one page howto to huge articles all in one place
 

search text in:





Poll
Which filesystem do you use?






poll results

Last additions:
using iotop to find disk usage hogs

using iotop to find disk usage hogs

words:

887

views:

186358

userrating:

average rating: 1.7 (102 votes) (1=very good 6=terrible)


May 25th. 2007:
Words

486

Views

250360

why adblockers are bad


Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

Workaround and fixes for the current Core Dump Handling vulnerability affected kernels

words:

161

views:

137537

userrating:

average rating: 1.4 (42 votes) (1=very good 6=terrible)


April, 26th. 2006:

Druckversion
You are here: manpages





XkbChangeControls

Section: XKB FUNCTIONS (3)
Updated: libX11 1.6.4
Index Return to Main Contents
 

NAME

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

SYNOPSIS

Bool XkbChangeControls (Display *dpy, XkbDescPtr xkb, XkbControlsChangesPtr 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 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

ControlControl
SelectionRelevant
MaskXkbControlsRecBoolean Control
(which parameter)DataFieldsenabled_ctrls bitSection


AccessXFeedback XkbAccessXFeedbackMask ax_options: XkbAccessXFeedbackMask 10.6.3
XkbAX_*FBMask
AccessXKeys XkbAccessXKeysMask 10.6.1
AccessXTimeout XkbAccessXTimeoutMask ax_timeout XkbAccessXTimeoutMask 10.6.2
axt_opts_mask
axt_opts_values
axt_ctrls_mask
axt_ctrls_values
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 XkbMouseKeysAccelMask 10.5.2
mk_interval
mk_time_to_max
mk_max_speed
mk_curve
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: XkbStickyKeysMask 10.6.8
XkbAX_TwoKeysMask
XkbAX_LatchToLockMask

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 Bitwhich orenabledValue
changed_ctrls_ctrls

XkbRepeatKeysMaskokok(1L<<0)
XkbSlowKeysMaskokok(1L<<1)
XkbBounceKeysMaskokok(1L<<2)
XkbStickyKeysMaskokok(1L<<3)
XkbMouseKeysMaskokok(1L<<4)
XkbMouseKeysAccelMaskokok(1L<<5)
XkbAccessXKeysMaskokok(1L<<6)
XkbAccessXTimeoutMaskokok(1L<<7)
XkbAccessXFeedbackMaskokok(1L<<8)
XkbAudibleBellMaskok(1L<<9)
XkbOverlay1Maskok(1L<<10)
XkbOverlay2Maskok(1L<<11)
XkbIgnoreGroupLockMaskok(1L<<12)
XkbGroupsWrapMaskok(1L<<27)
XkbInternalModsMaskok(1L<<28)
XkbIgnoreLockModsMaskok(1L<<29)
XkbPerKeyRepeatMaskok(1L<<30)
XkbControlsEnabledMaskok(1L<<31)
XkbAccessXOptionsMaskokok(XkbStickyKeysMask |
XkbAccessXFeedbackMask)
XkbAllBooleanCtrlsMaskok(0x00001FFF)
XkbAllControlsMaskok(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->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;


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
STRUCTURES





Support us on Content Nation
rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2020 Sascha Nitsch Unternehmensberatung GmbH
Valid XHTML1.1 : Valid CSS : buttonmaker
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 18.1 ms