Reference

XWindowAttributes(3) on Linux

The text d8ccaf0b4543, as Debian 5.0 (Lenny) shipped it.

get current window attribute or geometry and current window attributes structure

XWindowAttributes(3) on Linux now