James Gettys, Robert W. Scheifler, et al., Xlib - C Language X Interface…
“ An application may wish to create a window long before it is mapped to the screen. When a window is eventually mapped to the screen (using XMapWindow) , the X server generates an Expose event for the window if backing store has not been maintained. A window manager can override your choice of size, border width, and position for a top-level window. Your program must be prepared to use the actual size and position of the top window. It is not acceptable for a client application to resize itself unless in direct response to a human command to do so. ”
