Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!snorkelwacker.mit.edu!bloom-beacon!dont-send-mail-to-path-lines From: jody@shell.COM (Jody Winston) Newsgroups: comp.windows.x Subject: Re: [Stuart.Marks@eng.sun.com: Re: Motif app window decorations under OLWM ] Message-ID: <9105061822.AA06390@marvin.brc.shell.com> Date: 6 May 91 18:22:07 GMT References: <1991May3.082247.15425@myab.se> Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 30 From greiner@shell.com: > Our application is written with Motif 1.1 and makes heavy use of Dialog > Boxes (in Dialog Shells); each of these has a title (set by the > XmNtitle resource on the Dialog Shell). When we run under the Open > Look Window Manager (on a Sun 4 with Open Windows 2) these dialog boxes > appear with no window decoration. This means the title is not shown > along with no resize handles, etc. > > I believe this occurs because Motif dialog boxes set the WM_TRANSIENT_FOR > hint. Olwm (from OpenWindows 2.0) gives transient windows very little > decoration. There's no way to change this in that version of olwm. > > There may be a resource you can set to tell Motif not to set the > WM_TRANSIENT_FOR hint. I know Frame has such a resource, but I don't know > about Motif in general. Perhaps a Motif expert can respond. > Several solutions are available: 1) The Motif shell widgets ASSUME that mwm is being used. Using another window manager, while permissible, results in depreciated functionality. For example, picture how things would look if uwm were used. Therefore, the simpliest solution is to use mwm. 2) Set the dialog shell's XmNtransient resource to FALSE. This will break the iconification code (i.e. a single icon for multiple windows) but should fix your title problem. 3) Use XtCreatePopupShell to create instances of topLevelShellWidgetClass rather than using Motif's convenience functions. This is a better way to implement option (2). It has also been tested so it's known to work.