XQueryPointer(3X) — X Version 11
NAME
XQueryPointer − get pointer coordinates
SYNTAX
Bool XQueryPointer(display, w, root_return, child_return, root_x_return, root_y_return,
win_x_return, win_y_return, mask_return)
Display ∗display;
Window w;
Window ∗root_return, ∗child_return;
int ∗root_x_return, ∗root_y_return;
int ∗win_x_return, ∗win_y_return;
unsigned int ∗mask_return;
ARGUMENTS
child_returnReturns the child window ID that the pointer is located in, if any.
displaySpecifies the connection to the X server.
mask_returnReturns the current state of the modifier keys and pointer buttons.
root_returnReturns the root window ID for the specified window.
root_x_return
root_y_return
Returns the pointer coordinates relative to the root window’s origin.
wSpecifies the window ID.
win_x_return
win_y_return
Returns the pointer coordinates relative to the specified window.
DESCRIPTION
The XQueryPointer function returns the root window the pointer is logically on and the pointer coordinates relative to the root window’s origin. .PN XQueryPointer can generate a BadWindow error.
DIAGNOSTICS
BadWindow A value for a Window argument does not name a defined Window.
SEE ALSO
XGetWindowAttributes(3X), XQueryTree(3X)
Xlib − C Language X Interface
1 March 1988