XkbChangeIndicators − Changes indicator maps or state without passing the entire keyboard description


Bool XkbChangeIndicators

(Display *dpy, XkbDescPtr xkb,

XkbIndicatorChangesPtr changes, unsigned int state);


− dpy

connection to the X server

− xkb

keyboard description from which names are to be taken.

− changes

indicators to be updated on the server

− state

new state of indicators listed in changes->state_changes


The XkbIndicatorChangesRec identifies small modifications to the indicator map. Use it with the function XkbChangeIndicators to reduce the amount of traffic sent to the server (see STRUCTURES).

The state_changes field is a mask that specifies the indicators that have changed state, and map_changes is a mask that specifies the indicators whose maps have changed.

XkbChangeIndicators copies any maps specified by changes from the keyboard description, xkb, to the server specified by dpy. If any bits are set in the state_changes field of changes, XkbChangeIndicators also sets the state of those indicators to the values specified in the state mask. A 1 bit in state turns the corresponding indicator on, a 0 bit turns it off.

In addition, it can also generate XkbIndicatorStateNotify and XkbIndicatorMapNotify events.

Whenever an indicator changes state, the server sends XkbIndicatorStateNotify events to all interested clients. Similarly, whenever an indicator’s map changes, the server sends XkbIndicatorMapNotify events to all interested clients.

To receive XkbIndicatorStateNotify events, use XkbSelectEvents with both the bits_to_change and values_for_bits parameters containing XkbIndicatorStateNotifyMask. To receive XkbIndicatorMapNotify events, use XkbSelectEvents with XkbIndicatorMapNotifyMask.

To receive events for only specific indicators, use XkbSelectEventDetails. Set the event_type parameter to XkbIndicatorStateNotify or XkbIndicatorMapNotify, and set both the bits_to_change and values_for_bits detail parameters to a mask where each bit specifies one indicator, turning on those bits that specify the indicators for which you want to receive events.

xkb_type is either XkbIndicatorStateNotify or XkbIndicatorMapNotify, depending on whether the event is a kbIndicatorStateNotify event or kbIndicatorMapNotify event.

The changed parameter is a mask that is the bitwise inclusive OR of the indicators that have changed. If the event is of type XkbIndicatorMapNotify, changed reports the maps that changed. If the event is of type XkbIndicatorStateNotify, changed reports the indicators that have changed state. state is a mask that specifies the current state of all indicators, whether they have changed or not, for both XkbIndicatorStateNotify and IndicatorMapNotify events.


typedef struct _XkbIndicatorChanges {

unsigned int


unsigned int



Both types of indicator events use the same structure:

typedef struct _XkbIndicatorNotify {
int type; /∗ Xkb extension base event code */
unsigned long serial; /∗ X server serial number for event */
Bool send_event; /∗ True => synthetically generated */
Display * display; /∗ server connection where event generated */
Time time; /∗ server time when event generated */
int xkb_type; /∗ specifies state or map notify */
int device; /∗ Xkb device ID, will not be XkbUseCoreKbd*/
unsigned int changed; /∗ mask of indicators with new state or map */
unsigned int state; /∗ current state of all indicators */
} XkbIndicatorNotifyEvent;



A name is neither a valid Atom or None


Invalid reply from server


XkbIndicatorMapNotify(3), XkbIndicatorStateNotify(3)

More Linux Commands

cyclone(1) - tornado screen saver. - Linux manual page......
From Terry Walsh (http://reallyslick.com): This screen saver makes tornadoes on your screen. I wrote it for my storm chasing partner, but you can have it too. P

isdninfo.4 (Manual - Linux man page).......................
/dev/isdninfo is a character device with major number 45 and minor number 255. It delivers status information from the Linux ISDN subsystem to user level. DATA

sane-kvs20xx(5) - SANE backend for Panasonic KV-S20xxC USB/S
The sane-kvs20xx library implements a SANE (Scanner Access Now Easy) backend which provides access to the Panasonic KV-S202xC and KV-S204xC scanners. KNOWN ISSU

fsck(8) - check and repair a Linux filesystem (Man Page)....
fsck is used to check and optionally repair one or more Linux filesystems. filesys can be a device name (e.g. /dev/hdc1, /dev/sdb2), a mount point (e.g. /, /usr

Tcl_GetCharLength(3) - manipulate Tcl objects as strings....
The procedures described in this manual entry allow Tcl objects to be manipulated as string values. They use the internal representation of the object to store

c++filt(1) - Demangle C++ and Java symbols. - Linux man page
The C ++ and Java languages provide function overloading, which means that you can write many functions with the same name, providing that each function takes p

get_auditfail_action(3) - Get failure_action tunable value
This function gets the failure_action tunable value stored in /etc/libaudit.conf. get_auditfail_action should be called after an audit_open call returns an erro

scandirat(3) scan a directory for matching entries..........
The scandir() function scans the directory dirp, calling filter() on each directory entry. Entries for which filter() returns nonzero are stored in strings allo

XtDisplayStringConversionWarning(3) - issue a conversion war
The XtDisplayStringConversionWarning function issues a warning message using XtAppWarningMsg with name conversionError, type string, class XtToolkitError, and t

timer_getoverrun(2) - get overrun count for a POSIX per-proc
timer_getoverrun() returns the overrun count for the timer referred to by timerid. An application can use the overrun count to accurately calculate the number o

gpg-zip(1) - Encrypt or sign files into an archive (ManPage)
gpg-zip encrypts or signs files into an archive. It is an gpg-ized tar using the same format as used by PGPs PGP Zip. OPTIONS gpg-zip understands these options:

XCheckMaskEvent(3) - select events by type - Linux man page
XCheckMaskEvent.3 - The XNextEvent function copies the first event from the event queue into the specified XEvent structure and then removes it from the queue.

We can't live, work or learn in freedom unless the software we use is free.