XChangeActivePointerGrab(display, event_mask, cursor, time)
Display *display;
unsigned int event_mask;
Cursor cursor;
Time time;
display | Specifies the connection to the X server. |
event_mask | Specifies which pointer events are reported to the client. The mask is the bitwise inclusive OR of the valid pointer event mask bits. |
cursor | Specifies the cursor that is to be displayed or None. |
time | Specifies the time. You can pass either a timestamp or CurrentTime. |
XChangeActivePointerGrab() can generate BadCursor and BadValue errors.
BadCursor | A value for a Cursor argument does not name a defined Cursor. |
BadValue | Some numeric value falls outside the range of values accepted by the request. Unless a specific range is specified for an argument, the full range defined by the argument's type is accepted. Any argument defined as a set of alternatives can generate this error. |