XkbGetAutoResetControls(3)



XkbGetAutoResetControls

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
RETURN VALUES

NAME

XkbGetAutoResetControls − Gets the current values of the auto-reset controls

SYNOPSIS

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 a per-client basis. There is no client-side Xkb data structure corresponding to these masks. Whenever the client exits for any 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 up after themselves" automatically, even if abnormally terminated. The bits used in the masks correspond to the EnabledControls control bits.

For example, a client that replaces the keyboard bell with some other audible cue might want to turn off the AudibleBell 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 in both 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 backfills auto_ctrls and auto_values with the AutoReset control attributes for this particular client.

False

The XkbGetAutoResetControls function returns False when it does not successfully backfill auto_ctrls and auto_values with the AutoReset control attributes for this particular client.



More Linux Commands

manpages/pwritev.2.html
pwritev(2) - read or write data into multiple buffers.......
The readv() system call reads iovcnt buffers from the file associated with the file descriptor fd into the buffers described by iov (scatter input). The writev(

manpages/mvprintw.3ncurses.html
printw(3ncurses) - print formatted output in curses windows
The printw, wprintw, mvprintw and mvwprintw routines are analogous to printf [see printf(3)]. In effect, the string that would be output by printf is output ins

manpages/keyctl_read_alloc.3.html
keyctl_read_alloc(3) - Read a key - Linux manual page.......
keyctl_read() reads the payload of a key if the key type supports it. The caller must have read permission on a key to be able to read it. buffer and buflen spe

manpages/tigetflag_sp.3ncurses.html
tigetflag_sp(3ncurses) - curses screen-pointer extension....
This implementation can be configured to provide a set of functions which improve the ability to manage multiple screens. This feature can be added to any of th

manpages/top_row.3menu.html
top_row(3menu) - set and get current_menu_item (Man Page)...
The function set_current_item sets the current item (the item on which the menu cursor is positioned). current_item returns a pointer to the current item in the

manpages/ExtUtils::Embed.3pm.html
ExtUtils::Embed(3pm) - Utilities for embedding Perl in C/C++
ExtUtils::Embed provides utility functions for embedding a Perl interpreter and extensions in your C/C ++ applications. Typically, an application Makefile will

manpages/glEndList.3gl.html
glEndList(3gl) - create or replace a display list (ManPage)
Display lists are groups of GL commands that have been stored for subsequent execution. Display lists are created with glNewList. All subsequent commands are pl

manpages/innochecksum.1.html
innochecksum(1) - offline InnoDB file checksum utility......
innochecksum prints checksums for InnoDB files. This tool reads an InnoDB tablespace file, calculates the checksum for each page, compares the calculated checks

manpages/sasl_server_start.3.html
sasl_server_start(3) - Begin an authentication negotiation
sasl_server_start() begins the authentication with the mechanism specified with mech. This fails if the mechanism is not supported. SASL_OK is returned if the a

manpages/glRasterPos4sv.3gl.html
glRasterPos4sv(3gl) - specify the raster position for pixel
The GL maintains a 3D position in window coordinates. This position, called the raster position, is used to position pixel and bitmap write operations. It is ma

manpages/SDL_GetGammaRamp.3.html
SDL_GetGammaRamp(3) - Gets the color gamma lookup tables for
Gets the gamma translation lookup tables currently used by the display. Each table is an array of 256 Uint16 values. Not all display hardware is able to change

manpages/git.1.html
git(1) - the stupid content tracker - Linux manual page.....
Git is a fast, scalable, distributed revision control system with an unusually rich command set that provides both high-level operations and full access to inte





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