mod/maxgui.mod/fltkmaxgui.mod/src/Fl_Gl_Window.cxx
int Fl_Gl_Window::handle(int event) 
{
#if (__APPLE_QUARTZ__)
  if (event==FL_HIDE) {
    // if we are not hidden, just the parent was hidden, so we must throw away the context
    if (!visible_r())
      context(0); // remove context wthout setting the hidden flags
  }
  if (event==FL_SHOW) {
    // if we are not hidden, just the parent was shown, so we must create a new context
    if (visible_r())
      show(); //
  }
#endif
  return Fl_Window::handle(event);
}
/**
 Handle some FLTK events as needed.
 */
Handle some FLTK events as needed.
Handle some FLTK events as needed .
int Fl_Gl_Window::handle(int event) 
{
#if (__APPLE_QUARTZ__)
  if (event==FL_HIDE) {
    if (!visible_r())
      context(0); 
  }
  if (event==FL_SHOW) {
    if (visible_r())
      show(); 
  }
#endif
  return Fl_Window::handle(event);
}
int Fl_Gl_Window :: handle ( int event ) { #if ( __APPLE_QUARTZ__ ) if ( event == FL_HIDE ) { if ( ! visible_r ( ) ) context ( 0 ) ; } if ( event == FL_SHOW ) { if ( visible_r ( ) ) show ( ) ; } #endif return Fl_Window :: handle ( event ) ; }
Handle some FLTK events as needed.
Handle some FLTK events as needed .
// if we are not hidden, just the parent was hidden, so we must throw away the context // remove context wthout setting the hidden flags // if we are not hidden, just the parent was shown, so we must create a new context //