Reference

XUngrabDeviceButton(3) on Linux

The text 6affbe15a7a8, as Debian 10 (Buster), Debian 9 (Stretch), Debian 8 (Jessie) shipped it.

grab/ungrab extension input device buttons

XUngrabDeviceButton(3) on Linux now