> > Hopefully not like:
> >
> > void mycallback(Fl_Window*, void*) {
> > mydialog->show();
> > }
> >
> > and later calling:
> > mydialog->hide()
>
> It depends on what you intend by "like". :-)
If you strip all those method calls and method method calls, you will
get above bone :-).
> 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()).
It's never been a problem in wm, but with the data window send to it; wm
behaves exactly as told, and setting window behind them main root is
been told by that window :-) Also, some wm's interpret marginal cases in
different ways, and that is what we don't want.
The general rule for dialogs is to use the following:
mydialog->set_modal();
mydialog->show();
while(mydialog->shown())
Fl::wait();
Calling hide() from somewhere else will close it regularly.
If problem still persits, then probably the best way would be to post some
code samples so we can see it in action.
--
Sanel
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk