From 00cf38e1e3ed459a9532d35447b3e476cb3024b7 Mon Sep 17 00:00:00 2001 From: Bill Spitzak Date: Tue, 17 Oct 2000 06:40:53 +0000 Subject: 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 --- src/Fl.cxx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src') 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 $". // -- cgit v1.2.3