Reference

XWindowAttributes(3) on Linux

The text ab9a1ae1f621, as Debian 4.0 (Etch) shipped it.

get current window attribute or geometry and current window attributes structure

XWindowAttributes(3) on Linux now