Reference

XPeekIfEvent(3x) on Linux

The text 5393e99e5705, as Debian 1.2 (Rex) shipped it.

check the event queue with a predicate procedure

XPeekIfEvent(3x) on Linux now