Reference

XIUngrabButton(3) on Linux

The text 29e8d7816cce, as Debian 7 (Wheezy) shipped it.

grab/ungrab buttons or keys

XIUngrabButton(3) on Linux now