Reference

XUngrabDeviceButton(3) on Linux

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

grab/ungrab extension input device buttons

XUngrabDeviceButton(3) on Linux now