XTimeCoord *XGetMotionEvents(display, w, start, stop, nevents_return)
Display *display;
Window w;
Time start, stop;
int *nevents_return;
display | Specifies the connection to the X server. |
w | Specifies the window. |
start stop | Specify the time interval in which the events are returned from the motion history buffer. You can pass a timestamp or CurrentTime. |
nevents_return | Returns the number of events from the motion history buffer. |
typedef struct {
Time time;
short x, y;
} XTimeCoord;
The time member is set to the time, in milliseconds. The x and y members are set to the coordinates of the pointer and are reported relative to the origin of the specified window. To free the data returned from this call, use XFree().
XGetMotionEvents() can generate a BadWindow error.
BadWindow | A value for a Window argument does not name a defined Window. |