Reference

XGetDeviceFocus(3x) on Linux

The text af2e8f362355, as Debian 3.0 (Woody) shipped it.

control extension input device focus

XGetDeviceFocus(3x) on Linux now