Reference

XWindowAttributes(3x) on Linux

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

get current window attribute or geometry and current window attributes structure

XWindowAttributes(3x) on Linux now