Reference

XIUngrabDevice(3) on Linux

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

grab or ungrab the device.

XIUngrabDevice(3) on Linux now