XWarpPointer(3X) — X Version 11
NAME
XWarpPointer − control input focus
SYNTAX
XWarpPointer(display, src_w, dest_w, src_x, src_y, src_width, src_height, dest_x,
dest_y)
Display ∗display;
Window src_w, dest_w;
int src_x, src_y;
unsigned int src_width, src_height;
int dest_x, dest_y;
ARGUMENTS
dest_wSpecifies the window ID of the destination window.
dest_x
dest_ySpecify the x and y coordinates within the destination window.
displaySpecifies the connection to the X server.
src_width
src_heightSpecify the width and height of the source window.
src_wSpecifies the window ID of the source window.
src_x
src_ySpecify the x and y coordinates within the source window.
DESCRIPTION
The XWarpPointer function moves the pointer to the coordinates specified by the dest_x and dest_y arguments, relative to the destination window’s origin. If the destination window is None, the pointer is moved by offsets specified by the dest_x and dest_y coordinates. .PN XWarpPointer can generate a BadWindow error.
DIAGNOSTICS
BadWindow A value for a Window argument does not name a defined Window.
SEE ALSO
XSetInputFocus(3X)
Xlib − C Language X Interface
1 March 1988