XQueryPointer(3) | Library Functions Manual | XQueryPointer(3) |
Bool XQueryPointer(Display *display, Window w, Window * root_return, Window *child_return, int * root_x_return, int *root_y_return, int *win_x_return, int * win_y_return, unsigned int *mask_return);
XQueryPointer returns the current logical state of the keyboard buttons and the modifier keys in mask_return. It sets mask_return to the bitwise inclusive OR of one or more of the button or modifier key bitmasks to match the current state of the mouse buttons and the modifier keys.
XQueryPointer can generate a BadWindow error.
X Version 11 | XLIB FUNCTIONS |