Reference

XWindowAttributes(3) on Linux

The text 5491a98e102a, as Debian 12 (Bookworm) shipped it.

get current window attribute or geometry and current window attributes structure

XWindowAttributes(3) on Linux now