Reference

XIGetFocus(3) on Linux

The text d1052a05fdd1, as Debian 7 (Wheezy) shipped it.

set or get the device's focus.

XIGetFocus(3) on Linux now