1
XIWARPPOINTER(libmansuffix)
2
===========================
7
XIWarpPointer - move a device's pointer.
12
#include <X11/extensions/XInput2.h>
14
Bool XIWarpPointer( Display *display,
26
Specifies the destination window or None.
29
Specify the x and y coordinates within the destination
33
Specifies the master pointer device or floating slave
37
Specifies the connection to the X server.
39
src_x, src_y, src_width, src_height
40
Specify a rectangle in the source window.
43
Specifies the source window or None.
48
If dest_w is None, XIWarpPointer moves the pointer by the
49
offsets (dest_x, dest_y) relative to the current position of
50
the pointer. If dest_w is a window, XIWarpPointer moves the
51
pointer to the offsets (dest_x, dest_y) relative to the origin
52
of dest_w. However, if src_w is a window, the move only takes
53
place if the window src_w contains the pointer and if the
54
specified rectangle of src_w contains the pointer.
56
The src_x and src_y coordinates are relative to the origin of
57
src_w. If src_height is zero, it is replaced with the current
58
height of src_w minus src_y. If src_width is zero, it is
59
replaced with the current width of src_w minus src_x.
61
There is seldom any reason for calling this function. The
62
pointer should normally be left to the user. If you do use this
63
function, however, it generates events just as if the user had
64
instantaneously moved the pointer from one position to another.
65
Note that you cannot use XIWarpPointer to move the pointer
66
outside the confine_to window of an active pointer grab. An
67
attempt to do so will only move the pointer as far as the
68
closest edge of the confine_to window.
70
XIWarpPointer is identical to XWarpPointer but specifies the
73
XIWarpPointer can generate a BadDevice and a BadWindow error.
79
An invalid device was specified. The device does not
80
exist or is not a pointer device.
83
A value for a Window argument does not name a defined
89
XWarpPointer(libmansuffix)