1
XCHANGEKEYBOARDDEVICE(libmansuffix)
2
===================================
7
XChangeKeyboardDevice - change which device is used as the X
13
#include <X11/extensions/XInput.h>
15
Status XChangeKeyboardDevice( Display *display,
19
Specifies the connection to the X server.
22
Specifies the device to be used as the X keyboard.
27
The XChangeKeyboardDevice request causes the server to use the
28
specified device as the X keyboard. The device must have been
29
previously opened by the requesting client via XOpenDevice or a
30
BadDevice error will result. The device must support input
31
class Keys, or a BadMatch error will result. If the server
32
implementation does not support using the requested device as
33
the X keyboard, a BadDevice error will result.
35
If the specified device is grabbed by another client,
36
AlreadyGrabbed is returned. If the specified device is frozen
37
by a grab on another device, GrabFrozen is returned. If the
38
request is successful, Success is returned.
40
If the request succeeds, a ChangeDeviceNotify event is sent to
41
all clients that have selected that event. A MappingNotify
42
event with request = MappingKeyboard is sent to all clients.
43
The specified device becomes the X keyboard and the old X
44
keyboard becomes accessible through the input extension
47
XChangeKeyboardDevice can generate a BadDevice or a BadMatch
54
An invalid device was specified. The specified device
55
does not exist, has not been opened by this client via
56
XOpenInputDevice, or is already one of the core X device
57
(pointer or keyboard). This error may also occur if the
58
server implementation does not support using the
59
specified device as the X keyboard.
62
This error may occur if an XChangeKeyboardDevice request
63
was made specifying a device that has no keys.
68
XChangePointerDevice(libmansuffix)