Reference

XPeekIfEvent(3x) on Linux

The text 8847ed6f07e5, as Debian 3.0 (Woody) shipped it.

check the event queue with a predicate procedure

XPeekIfEvent(3x) on Linux now