XWindowEvent(display, w, event_mask, event_return)
Display *display;
Window w;
long event_mask;
XEvent *event_return;
| display | Specifies the connection to the X server. |
| w | Specifies the window whose events you are interested in. |
| event_mask | Specifies the event mask. |
| event_return | Returns the matched event's associated structure. |