Reference

XWindowAttributes(3x) on Linux

The text fdcd348d565a, as Debian 1.1 (Buzz) shipped it.

get current window attribute or geometry and current window attributes structure

XWindowAttributes(3x) on Linux now