Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!think.com!mintaka!spdcc!tauxersvilli!alphalpha!nazgul From: nazgul@alphalpha.com (Kee Hinckley) Newsgroups: comp.windows.x Subject: Re: Motif app window decorations under OLWM Message-ID: <1991May6.145603.19225@alphalpha.com> Date: 6 May 91 14:56:03 GMT References: <9105031949.AA12967@trantor.Eng.Sun.COM> Organization: none Lines: 47 In article <9105031949.AA12967@trantor.Eng.Sun.COM> Stuart.Marks@eng.sun.COM (Stuart Marks) writes: >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. Well that's novel. Are there any plans to handle mapping/unmapping and iconization using that resource too? >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. You can of course use the standard X mechanisms to take it off, although you'd have to do it after the dialog was created - I don't know if that would matter to olwm. Of course then you have the problem that with other window managers WM_TRANSIENT_FOR does some useful things (like unmapping the dialog when you iconize the window it's transient for, or making sure it's not obscured) - so you probably don't want to turn it off all the time. I assume that's why Frame was forced to make it a user-definable resource. While we're finding out interesting things about owlm, can anyone tell me why this code results in a icon with no iconname? hints = XGetWMHints(XtDisplay(shell), XtWindow(shell)); if (!hints) { hints = (XWMHints *) XtMalloc(sizeof(XWMHints)); bzero(hints, sizeof(XWMHints)); } hints->flags = IconWindowHint; hints->icon_window = iconWindow; XSetWMHints(dpy, XtWindow(shell), hints); XtFree(hints); and later ctext = XmInternAtom(XtDisplay(widget), "STRING", False); iname = XmInternAtom(XtDisplay(widget), "WM_ICON_NAME", False); XChangeProperty(XtDisplay(widget), XtWindow(widget), iname, ctext, 8, PropModeReplace, (byte *) cptr, strlen(cptr)); -- 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.