I'd like to start an application in the iconified state from within my
FVWM InitFunction.  I know that I can use the "Exec foo" command to
start the "foo" application and that I can use the StartIconic style or
Iconify command to minimize a window, but it is not clear to me how to
make these work together efficiently so that only the most recent "foo"
application window is iconified.  The conditions that I want to be
satisfied are as follows:

1.  Instances of "foo" started before the "Exec foo" command must remain
in their present state (iconified/deiconified).
2.  Instances of "foo" started after the "Exec foo" start in the
deiconified state.

My best guess looks like this:

Style foo StartIconic
Exec foo
Wait foo
Style foo StartNormal

Will the "Wait foo" catch a window that starts iconified?  Even if it
does, what I don't like about this is that the "Wait foo" will slow down
my startup by forcing FVWM to wait for the foo application to map its
window.  Is there a more efficient way to associate the StartIconic
style with a single Exec command?

Thanks.

--Ethan


Reply via email to