Reference

XGetDeviceFocus(3) on Linux

The text d731ecf6b8e8, as Debian 5.0 (Lenny) shipped it.

control extension input device focus

XGetDeviceFocus(3) on Linux now