[comp.windows.x] Getting window manager's decision

mvh@cfa250.harvard.edu (Mike VanHilst B-441 x57260) (05/01/89)

Is there any way to get the window manager's decision as regards an attempt
to place a window without actually mapping the window.  I have an image
processing application with several windows, not all of which are normally
mapped.  I need to know the size of the windows for allocating buffers and
computing their contents.  I would prefer not to do the computation at the
time the user requests the window as that slows the response (I am prepared
to recompute the contents in response to a ConfigureNotify).

My current method is to map all the windows and wait for the expose events
to learn what size they actually end up being.  Then those I don't want
initially mapped get unmapped.  The result is windows appearing, with some
disappearing and others remaining empty while their contents are computed.
Is there a more aesthetic approach to this problem?

Thanks, Mike VanHilst

rws@EXPO.LCS.MIT.EDU (05/01/89)

    Is there any way to get the window manager's decision as regards an attempt
    to place a window without actually mapping the window.

Nope.  There are window managers that have to delay policy decisions until
map time (e.g. a tiling window manager).

    My current method is to map all the windows and wait for the expose events
    to learn what size they actually end up being.  Then those I don't want
    initially mapped get unmapped.

There is no guarantee that a later map won't change the geometry.