Reference

XWindowAttributes(3) on Linux

The text fbace29f1949, as Debian 13 (Trixie) shipped it.

get current window attribute or geometry and current window attributes structure

XWindowAttributes(3) on Linux now