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
nazgul@alfalfa.com (Information Junkie) (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. You can set transientFor and you can make sure they have the same window group leader. However some window managers (Olwm being one) ignore all of that. In that case you just have to map/unmap them. I've never had any problems with size and position being lost though. That seems strange. Alfalfa Software, Inc. | Poste: The EMail for Unix nazgul@alfalfa.com | Send Anything... Anywhere 617/646-7703 (voice/fax) | info@alfalfa.com I'm not sure which upsets me more: that people are so unwilling to accept responsibility for their own actions, or that they are so eager to regulate everyone else's.