diff options
| author | Bill Spitzak <spitzak@gmail.com> | 2000-10-17 06:40:53 +0000 |
|---|---|---|
| committer | Bill Spitzak <spitzak@gmail.com> | 2000-10-17 06:40:53 +0000 |
| commit | 00cf38e1e3ed459a9532d35447b3e476cb3024b7 (patch) | |
| tree | f8248c2637618b467be7321844a5b235887e7cba /src | |
| parent | c30c095d7251e730e079c9a2d441cdc23e6c4b98 (diff) | |
Hack to fix the annoying "raise another application when a modal window
is closed" problem on WIN32.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1311 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl.cxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx index 5ea46e793..f278e0ca5 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl.cxx,v 1.24.2.30 2000/06/21 17:36:36 bill Exp $" +// "$Id: Fl.cxx,v 1.24.2.31 2000/10/17 06:40:53 spitzak Exp $" // // Main event handling code for the Fast Light Tool Kit (FLTK). // @@ -599,7 +599,11 @@ void Fl_Window::hide() { if (x->region) XDestroyRegion(x->region); #endif XDestroyWindow(fl_display, x->xid); - +#ifdef WIN32 + // Try to stop the annoying "raise another program" behavior + if (non_modal() && Fl::first_window() && Fl::first_window()->shown()) + Fl::first_window()->show(); +#endif delete x; } @@ -729,5 +733,5 @@ void Fl_Window::flush() { } // -// End of "$Id: Fl.cxx,v 1.24.2.30 2000/06/21 17:36:36 bill Exp $". +// End of "$Id: Fl.cxx,v 1.24.2.31 2000/10/17 06:40:53 spitzak Exp $". // |
