To unmap a window, use XUnmapWindow().
To unmap all subwindows for a specified window, use XUnmapSubwindows().