11.4.3 Selecting Events Using a Window or Event Mask

The functions discussed in this section let you select events by window or event types, allowing you to process events out of order.

To remove the next event that matches both a window and an event mask, use XWindowEvent().

To remove the next event that matches both a window and an event mask (if any), use XCheckWindowEvent().

To remove the next event that matches an event mask, use XMaskEvent().

To return and remove the next event that matches an event mask (if any), use XCheckMaskEvent().

To return and remove the next event in the queue that matches an event type, use XCheckTypedEvent().

To return and remove the next event in the queue that matches an event type and a window, use XCheckTypedWindowEvent().

Next: Putting an Event Back into the Queue

Christophe Tronche, ch@tronche.com