XPeekIfEvent(display, event_return, predicate, arg)
      Display *display;
      XEvent *event_return;
      Bool (*predicate)();
      XPointer arg;
| display | Specifies the connection to the X server. | 
| event_return | Returns a copy of the matched event's associated structure. | 
| predicate | Specifies the procedure that is to be called to determine if the next event in the queue matches what you want. | 
| arg | Specifies the user-supplied argument that will be passed to the predicate procedure. |