Reference

XGetDeviceFocus(3) on Linux

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

control extension input device focus

XGetDeviceFocus(3) on Linux now