Reference

XCloseDevice(3) on Linux

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

open or close an extension input device

XCloseDevice(3) on Linux now