diff options
Diffstat (limited to 'src/Fl.cxx')
| -rw-r--r-- | src/Fl.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx index 667380c2a..a77a653c0 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -30,7 +30,7 @@ // mostly to get around the single active context in QD and // to implement clipping. This should be changed into pure // Quartz calls in the near future. - +#include "config.h" #include <FL/Fl.H> #include <FL/Fl_Window.H> #include <FL/x.H> @@ -1184,6 +1184,9 @@ void Fl_Window::hide() { fl_release_dc(fl_window, fl_gc); fl_window = (HWND)-1; fl_gc = 0; +# ifdef HAVE_CAIRO + if (Fl::cairo_autolink_context()) Fl::cairo_make_current((Fl_Window*) 0); +# endif } #elif defined(__APPLE_QD__) if ( ip->xid == fl_window && !parent() ) |
