Reference

XtPending(3) on Linux

The text 9b3e040984a6, as Debian 11 (Bullseye) shipped it.

query and process events and input

XtPending(3) on Linux now