Reference

XWindowAttributes(3x) on Linux

The text 13f558f8b78e, as Debian 1.2 (Rex) shipped it.

get current window attribute or geometry and current window attributes structure

XWindowAttributes(3x) on Linux now