Reference

XCheckIfEvent(3x) on Linux

The text 81d5a4ab10f1, as Debian 2.2 (Potato), Debian 2.1 (Slink), Debian 2.0 (Hamm), Debian 1.3 (Bo) shipped it.

check the event queue with a predicate procedure

XCheckIfEvent(3x) on Linux now