XCheckTypedWindowEvent

Syntax

Bool XCheckTypedWindowEvent(display, w, event_type, event_return)
      Display *display;
      Window w;
      int event_type;
      XEvent *event_return;

Arguments

display Specifies the connection to the X server.
w Specifies the window.
event_type Specifies the event type to be compared.
event_return Returns the matched event's associated structure.

Description

The XCheckTypedWindowEvent() function searches the event queue and then any events available on the server connection for the first event that matches the specified type and window. If it finds a match, XCheckTypedWindowEvent() removes the event from the queue, copies it into the specified XEvent structure, and returns True. The other events in the queue are not discarded. If the event is not available, XCheckTypedWindowEvent() returns False, and the output buffer will have been flushed.

See also

XCheckMaskEvent(), XCheckWindowEvent(), XIfEvent(), XMaskEvent(), XNextEvent(), XPeekEvent(), XPutBackEvent(), XSendEvent(), XWindowEvent(), "Selecting Events Using a Window or Event Mask".
Christophe Tronche, ch@tronche.com