Returns a copy of the matched event's associated structure.
Description
The
XPeekEvent()
function returns the first event from the event queue,
but it does not remove the event from the queue.
If the queue is empty,
XPeekEvent()
flushes the output buffer and blocks until an event is received.
It then copies the event into the client-supplied
XEvent
structure without removing it from the event queue.