Reference

XISelectEvents(3) on Linux

The text 980872184bb2, as Debian 12 (Bookworm) shipped it.

select for or get selected XI2 events on the window.

XISelectEvents(3) on Linux now