> Hi,
>
>> If I call this window once again (after performing exactly the same
>> sequence of operations), the window manager informs me about its
>> existence but BEHIND the main window. I can still access it through
>> the icon on window manager's bar, but this is obviously not my
>> intention: it should stay always on top.
>
> How your show()/hide() sequence looks like ?
Well, as explained: the cb of a box in the main window calls a
method which calls another method containing MyWindow->show();.
The modal MyWindow contains a button having in its cb the
MyWindow->hide(); along other method calls.
> Hopefully not like:
>
> void mycallback(Fl_Window*, void*) {
> mydialog->show();
> }
>
> and later calling:
> mydialog->hide()
It depends on what you intend by "like". :-)
> because this exact sequence can't setup window correctly to receive
> events, and in turn, it can't inform wm when is closed (correctly
> again).
Well, it does not look as a wm problem. As far as the wm (KDE) is
concerned, it gets correctly the information about MyWindow being
closed (when hide() is called) or open (when shown()).
Nor it is a getting event problem: when shown, MyWindow is the only
window of my application which can get events (thus, the main window,
even if covering it when MyWindow is shown for the second time, does
not get any event -- which is the intended behaviour, of course).
Anyway, assuming that the cause of my trouble are incorrect show()
and hide() calls, how should I modify them in order to have always
MyWindow in the foreground?
Many thanks.
Z.B.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk