Reference

XCheckIfEvent(3x) on Linux

The text 1dd732c3101f, as Debian 3.1 (Sarge) shipped it. The page shows this text now.

check the event queue with a predicate procedure

XCheckIfEvent(3x) on Linux now