XMaskEvent(display, event_mask, event_return)
      Display *display;
      long event_mask;
      XEvent *event_return;


display Specifies the connection to the X server.
event_mask Specifies the event mask.
event_return Returns the matched event's associated structure.


The XMaskEvent() function searches the event queue for the events associated with the specified mask. When it finds a match, XMaskEvent() removes that event and copies it into the specified XEvent structure. The other events stored in the queue are not discarded. If the event you requested is not in the queue, XMaskEvent() flushes the output buffer and blocks until one is received.

See also

XCheckMaskEvent(), XCheckTypedEvent(), XCheckTypedWindowEvent(), XCheckWindowEvent(), XIfEvent(), XNextEvent(), XPeekEvent(), XPutBackEvent(), XSendEvent(), XWindowEvent(), "Selecting Events Using a Window or Event Mask".
Christophe Tronche, [email protected]