1XCHANGEPOINTERDEVICE(3)                                XCHANGEPOINTERDEVICE(3)
2
3
4

NAME

6       XChangePointerDevice - change which device is the X pointer
7

SYNOPSIS

9       #include <X11/extensions/XInput.h>
10
11       Status XChangePointerDevice( Display *display,
12                                    XDevice *device,
13                                    int xaxis,
14                                    int yaxis);
15
16       display
17              Specifies the connection to the X server.
18
19       device
20              Specifies the device to be used as the X pointer.
21
22       xaxis
23              Specifies the axis of the device to be used as the X
24              pointer x-axis.
25
26       yaxis
27              Specifies the axis of the device to be used as the X
28              pointer y-axis.
29

DESCRIPTION

31           The XChangePointerDevice request causes the server to use the
32           specified device as the X pointer. The device must have been
33           opened by the client via XOpenDevice or a BadDevice error will
34           result. The device must support input class Valuators or a
35           BadMatch error will result. If the implementation does not
36           support use of the specified device as the X pointer, a
37           BadDevice error will result.
38
39           If the specified device is grabbed by another client,
40           AlreadyGrabbed is returned. If the specified device is frozen
41           by a grab on another device, GrabFrozen is returned. If the
42           request is successful, Success is returned.
43
44           If the request succeeds, a ChangeDeviceNotify event is sent to
45           all clients that have selected that event. A MappingNotify
46           event with request = MappingPointer is sent to all clients. The
47           specified device becomes the X pointer, and the old X pointer
48           becomes accessible through the input extension protocol
49           requests.
50
51           XChangePointerDevice can generate a BadDevice or a BadMatch
52           error.
53

DIAGNOSTICS

55           BadDevice
56                  An invalid device was specified. The specified device
57                  does not exist, has not been opened by this client via
58                  XOpenInputDevice, or is already one of the core X input
59                  devices (pointer or keyboard). This error may also occur
60                  if the server implementation does not support using the
61                  specified device as the X pointer.
62
63           BadMatch
64                  This error may occur if an XChangePointerDevice request
65                  was made specifying a device that has less than two
66                  valuators, or specifying a valuator index beyond the
67                  range supported by the device.
68

SEE ALSO

70           XChangeKeyboardDevice(3)
71
72
73
74                                  09/15/2021           XCHANGEPOINTERDEVICE(3)
Impressum