[ba.windows.x] How can a program cause one of its windows to become iconified?

agh20@DUTS.ccc.amdahl.com (Alan Humpherys) (04/24/91)

  I am writing a motif 1.0 application with multiple top level windows.
I would like to be able to force all top level windows to become iconified
whenever the "main" window is iconified.  Right now, I am using
XtUnmapWidget() to unmap them, but when they are Mapped again using
XtMapWidget() the size and position of the windows is lost.

  If any of you bright individuals out there know what I need to do to
cause a window to become iconified under mwm... I would appreciate it if
you would enlighten me...

  Thanks in advance!
--
======================================================================
|          Alan Humpherys           agh20@duts.ccc.amdahl.com        |
|    Murphy's Golden Rule - 'Whoever has the gold makes the rules'   |
======================================================================"

klee@wsl.dec.com (Ken Lee) (04/24/91)

In article <0fHd02Qa070F01@JUTS.ccc.amdahl.com>, agh20@DUTS.ccc.amdahl.com (Alan Humpherys) writes:
|> 
|>   I am writing a motif 1.0 application with multiple top level windows.
|> I would like to be able to force all top level windows to become iconified
|> whenever the "main" window is iconified. 

With certain window managers, you get this behaviour automatically if
you use transient shell widgets.  If you have to use top level shell
widgets, try the XtNiconic resource.

-- 
Ken Lee
DEC Western Software Laboratory, Palo Alto, Calif.
Internet: klee@wsl.dec.com
uucp: uunet!decwrl!klee