Reference

XWindowAttributes(3) on Linux

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

get current window attribute or geometry and current window attributes structure

XWindowAttributes(3) on Linux now