diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2001-12-18 11:00:09 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2001-12-18 11:00:09 +0000 |
| commit | b6b4e1ec20e88533ce48fc081544477627648181 (patch) | |
| tree | 9d4793b113cf0d25783d2fe2488cb965102874d1 /src/Fl.cxx | |
| parent | 6642c677cabe32f0d1d5712af9f5999e02c32d6e (diff) | |
- 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
Diffstat (limited to 'src/Fl.cxx')
| -rw-r--r-- | src/Fl.cxx | 13 |
1 files changed, 10 insertions, 3 deletions
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 $". // |
