Reference

XGetDeviceFocus(3) on Linux

The text 95f63362d893, as Debian 6.0 (Squeeze) shipped it.

control extension input device focus

XGetDeviceFocus(3) on Linux now