XKB FUNCTIONS XkbGetAutoResetControls(3x11)
NAME
XkbGetAutoResetControls - Gets the current values of the
auto-reset controls
SYNOPSIS
cc [ flag... ] file... -lX11 [ library... ]
Bool XkbGetAutoResetControls (Display *dpy, unsigned int
*auto_ctrls, unsigned int *auto_values);
ARGUMENTS- dpy
connection to X server- auto_ctrls
specifies which bits in auto_values are relevant
- auto_values
1 bit => corresponding control has auto-reset on
DESCRIPTION
You can configure the boolean controls to automatically be enabled or disabled when a program exits. This capability is controlled via two masks maintained in the X server on aper-client basis. There is no client-side Xkb data structure
corresponding to these masks. Whenever the client exits forany reason, any boolean controls specified in the auto-reset
mask are set to the corresponding value from the auto-reset
values mask. This makes it possible for clients to "clean upafter themselves" automatically, even if abnormally ter-
minated. The bits used in the masks correspond to the Ena-
bledControls control bits. For example, a client that replaces the keyboard bell withsome other audible cue might want to turn off the Audible-
Bell control to prevent the server from also generating a sound and avoid cacophony. If the client were to exit without resetting the AudibleBell control, the user would be left without any feedback at all. Setting AudibleBell inboth the auto-reset mask and auto-reset values guarantees
that the audible bell will be turned back on when the client exits.XkbGetAutoResetControls backfills auto_ctrls and auto_values
with the AutoReset control attributes for this particular client. It returns True if successful, and False otherwise.RETURN VALUES
True The XkbGetAutoResetControls function returns
True when it successfully backfillsauto_ctrls and auto_values with the AutoReset
control attributes for this particular X Version 11 Last change: libX11 1.3.5 1XKB FUNCTIONS XkbGetAutoResetControls(3x11)
client.False The XkbGetAutoResetControls function returns
False when it does not successfully backfillauto_ctrls and auto_values with the AutoReset
control attributes for this particular client.ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Availability | x11/library/libx11 ||_____________________________|_____________________________|
| Interface Stability | Committed ||_____________________________|_____________________________|
| MT-Level | See XInitThreads(3X11) |
|_____________________________|_____________________________|
X Version 11 Last change: libX11 1.3.5 2