summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Spitzak <spitzak@gmail.com>2000-10-17 06:40:53 +0000
committerBill Spitzak <spitzak@gmail.com>2000-10-17 06:40:53 +0000
commit00cf38e1e3ed459a9532d35447b3e476cb3024b7 (patch)
treef8248c2637618b467be7321844a5b235887e7cba
parentc30c095d7251e730e079c9a2d441cdc23e6c4b98 (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
-rw-r--r--src/Fl.cxx10
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 $".
//