1XCHANGEKEYBOARDDEVIC(3)                                XCHANGEKEYBOARDDEVIC(3)
2
3
4

NAME

6       XChangeKeyboardDevice - change which device is used as the X keyboard
7

SYNOPSIS

9       #include <X11/extensions/XInput.h>
10
11       Status XChangeKeyboardDevice( Display *display,
12                                     XDevice *device);
13
14       display
15              Specifies the connection to the X server.
16
17       device
18              Specifies the device to be used as the X keyboard.
19

DESCRIPTION

21           The XChangeKeyboardDevice request causes the server to use the
22           specified device as the X keyboard. The device must have been
23           previously opened by the requesting client via XOpenDevice or a
24           BadDevice error will result. The device must support input
25           class Keys, or a BadMatch error will result. If the server
26           implementation does not support using the requested device as
27           the X keyboard, a BadDevice error will result.
28
29           If the specified device is grabbed by another client,
30           AlreadyGrabbed is returned. If the specified device is frozen
31           by a grab on another device, GrabFrozen is returned. If the
32           request is successful, Success is returned.
33
34           If the request succeeds, a ChangeDeviceNotify event is sent to
35           all clients that have selected that event. A MappingNotify
36           event with request = MappingKeyboard is sent to all clients.
37           The specified device becomes the X keyboard and the old X
38           keyboard becomes accessible through the input extension
39           protocol requests.
40
41           XChangeKeyboardDevice can generate a BadDevice or a BadMatch
42           error.
43

DIAGNOSTICS

45           BadDevice
46                  An invalid device was specified. The specified device
47                  does not exist, has not been opened by this client via
48                  XOpenInputDevice, or is already one of the core X device
49                  (pointer or keyboard). This error may also occur if the
50                  server implementation does not support using the
51                  specified device as the X keyboard.
52
53           BadMatch
54                  This error may occur if an XChangeKeyboardDevice request
55                  was made specifying a device that has no keys.
56

SEE ALSO

58           XChangePointerDevice(3)
59
60
61
62                                  09/15/2021           XCHANGEKEYBOARDDEVIC(3)
Impressum