XChangeKeyboardDevice − change which device is used as the X keyboard


#include <X11/extensions/XInput.h>

Status XChangeKeyboardDevice( Display *display,
XDevice *device);

Specifies the connection to the X server.

Specifies the device to be used as the X keyboard.


The XChangeKeyboardDevice request causes the server to use the
specified device as the X keyboard. The device must have been
previously opened by the requesting client via XOpenDevice or a
BadDevice error will result. The device must support input
class Keys, or a BadMatch error will result. If the server
implementation does not support using the requested device as
the X keyboard, a BadDevice error will result.

If the specified device is grabbed by another client,
AlreadyGrabbed is returned. If the specified device is frozen
by a grab on another device, GrabFrozen is returned. If the
request is successful, Success is returned.

If the request succeeds, a ChangeDeviceNotify event is sent to
all clients that have selected that event. A MappingNotify
event with request = MappingKeyboard is sent to all clients.
The specified device becomes the X keyboard and the old X
keyboard becomes accessible through the input extension
protocol requests.

XChangeKeyboardDevice can generate a BadDevice or a BadMatch


An invalid device was specified. The specified device
does not exist, has not been opened by this client via
XOpenInputDevice, or is already one of the core X device
(pointer or keyboard). This error may also occur if the
server implementation does not support using the
specified device as the X keyboard.

This error may occur if an XChangeKeyboardDevice request
was made specifying a device that has no keys.



More Linux Commands

Xmbuf(3) - X multibuffering functions - Linux manual page...
Xmbuf.3 - The application programming library for the X11 Double-Buffering, Multi-Buffering, and Stereo Extension contains the interfaces described below. With

keyrings(7) In-kernel key management and retention facility
The keyrings facility is primarily a way for drivers to retain or cache security data, authentication keys, encryption keys and other data in the kernel. System

fifo(7) - first-in first-out special file, named pipe.......
A FIFO special file (a named pipe) is similar to a pipe, except that it is accessed as part of the filesystem. It can be opened by multiple processes for readin

Tk_Fill3DRectangle(3) - draw borders with three-dimensional
These procedures provide facilities for drawing window borders in a way that produces a three-dimensional appearance. Tk_Alloc3DBorderFromObj allocates colors a

glFrustum(3gl) - multiply the current matrix by a perspectiv
glFrustum describes a perspective matrix that produces a perspective projection. The current matrix (see glMatrixMode) is multiplied by this matrix and the resu

pamtompfont(1) - Convert Netpbm image to Mplayer bitmap font
This program is part of Netpbm(1) pamtompfont reads a Netpbm image (PNM or PAM) and converts it to an Mplayer bitmap font raster file. This is the original font

svcerr_decode(3) - library routines for remote procedure cal
These routines allow C programs to make procedure calls on other machines across the network. First, the client calls a procedure to send a data packet to the s

sendmail(1) - Postfix to Sendmail compatibility interface...
The Postfix sendmail(1) command implements the Postfix to Sendmail compatibility interface. For the sake of compatibility with existing applications, some Sendm

gnutls_priority_set(3) - API function - Linux manual page...
Sets the priorities to use on the ciphers, key exchange methods, macs and compression methods. RETURNS GNUTLS_E_SUCCESS on success, or an error code. REPORTING

ipc(5) - System V interprocess communication mechanisms.....
This manual page refers to the Linux implementation of the System V interprocess communication (IPC) mechanisms: message queues, semaphore sets, and shared memo

XF86VidModeGetAllModeLines(3) - Extension library for the XF
These functions provide an interface to the server extension XFree86-VidModeExtension which allows the video modes to be queried and adjusted dynamically and mo

form_new_page(3form) - form pagination functions (Man Page)
The function set_new_page sets or resets a flag marking the given field as the beginning of a new page on its form. The function new_page is a predicate which t

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