FVWM: Re: Iconisation issue

From: Dominik Vogt <dominik.vogt_at_gmx.de>
Date: Fri, 2 Mar 2001 16:06:22 +0100

On Fri, Mar 02, 2001 at 10:50:57AM -0000, Matt H wrote:
> >Well, of course you don't get a MapNotify if the window starts
> >iconic as you asked through the WMHints. If said other window
> >managers ignore this hint and create the window full sized then
> >these window managers are broken (consider reporting that bug to
> >the developers).
> >
> >However, what you say does not match the code you sent. I can't
> >see why myshell should have the IconicState set in the WMHints.
> >I removed the two forms from the code (XmCreateForm always gives
> >me that X error message) and now I get the MapNotify as requested
> >as soon as the code reaches the final line:
> >
> > XtAppMainLoop(my_appContext);
> >
> >I'd take another look at the code if you post the correct code.
>
> Dominik,
>
> Thank you for your willingness to help here!
>
> I guess the question is...if WMHINTS->initial_state is set to iconic and
> XtSetMappedWhenManaged on a shell is set, when managing the shell it should
> get mapped (hence generating the MapNotify event) even though it should be
> iconised?

No, I don't think so. In X, events are generated for *windows*,
not for Xt widgets. If an event is selected for the shell widget,
it is only selected for the widget's window, not its icon window,
so sending a MapNotify might confuse the application or even crash
it. I've reread the specifications again and I can find no
indication that the client should get any event when a window is
started iconic. *If* an event is sent, then it should be an
UnmapNotify, not a MapNotify. I have written a patch for this,
but I am not sure this will work with all applications. Anyway,
your program should not rely on a MapNotify or UnmapNotify event.

Bye

Dominik ^_^ ^_^

--
Dominik Vogt, dominik.vogt_at_gmx.de
Reply-To: dominik.vogt_at_gmx.de
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Fri Mar 02 2001 - 08:06:14 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:51 BST