Reference

XPeekIfEvent(3x) on Linux

The text b5630548c2e0, as Debian 1.1 (Buzz) shipped it.

check the event queue with a predicate procedure

XPeekIfEvent(3x) on Linux now