From b6b4e1ec20e88533ce48fc081544477627648181 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Tue, 18 Dec 2001 11:00:09 +0000 Subject: - Mac: greatly improved OpenGL support, some window management, soem little bugs, better source comments git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1872 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl.cxx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/Fl.cxx') diff --git a/src/Fl.cxx b/src/Fl.cxx index 22c26887b..9667e02b8 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl.cxx,v 1.24.2.41.2.13 2001/12/17 13:48:59 easysw Exp $" +// "$Id: Fl.cxx,v 1.24.2.41.2.14 2001/12/18 11:00:09 matthiaswm Exp $" // // Main event handling code for the Fast Light Tool Kit (FLTK). // @@ -696,12 +696,19 @@ void Fl_Window::hide() { fl_gc = 0; } #elif defined(__APPLE__) - //++ MacOS needs a simulation of focus events?! DONT! + //++ Matt: I have not checked yet what we need to do here Fl::handle(FL_UNFOCUS, this); #else if (x->region) XDestroyRegion(x->region); #endif + +#ifdef __APPLE__ + if ( !parent() ) // don't destroy shared windows! + XDestroyWindow(fl_display, x->xid); +#else XDestroyWindow(fl_display, x->xid); +#endif + #ifdef WIN32 // Try to stop the annoying "raise another program" behavior if (non_modal() && Fl::first_window() && Fl::first_window()->shown()) @@ -844,5 +851,5 @@ void Fl_Window::flush() { } // -// End of "$Id: Fl.cxx,v 1.24.2.41.2.13 2001/12/17 13:48:59 easysw Exp $". +// End of "$Id: Fl.cxx,v 1.24.2.41.2.14 2001/12/18 11:00:09 matthiaswm Exp $". // -- cgit v1.2.3