Reference

XWindowAttributes(3) on Linux

The text fcf46acf12af, as Debian 8 (Jessie) shipped it.

get current window attribute or geometry and current window attributes structure

XWindowAttributes(3) on Linux now