mirror of
https://github.com/fltk/fltk.git
synced 2026-06-06 00:22:42 +08:00
Fix OSX subwindow hide (STR #22)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2984 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
CHANGES IN FLTK 1.1.4
|
CHANGES IN FLTK 1.1.4
|
||||||
|
|
||||||
|
- Hiding subwindows on OSX would hide the parent window
|
||||||
|
(STR #22)
|
||||||
- Added thin plastic box types.
|
- Added thin plastic box types.
|
||||||
- Fl_Pack ignored the box() setting and cleared any
|
- Fl_Pack ignored the box() setting and cleared any
|
||||||
unused areas to the widget color; it now only does so
|
unused areas to the widget color; it now only does so
|
||||||
|
|||||||
+7
-2
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl.cxx,v 1.24.2.41.2.60 2003/04/09 03:57:06 easysw Exp $"
|
// "$Id: Fl.cxx,v 1.24.2.41.2.61 2003/05/20 15:17:12 easysw Exp $"
|
||||||
//
|
//
|
||||||
// Main event handling code for the Fast Light Tool Kit (FLTK).
|
// Main event handling code for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@@ -835,7 +835,12 @@ int Fl_Window::handle(int ev)
|
|||||||
Fl_Widget* p = parent(); for (;p->visible();p = p->parent()) {}
|
Fl_Widget* p = parent(); for (;p->visible();p = p->parent()) {}
|
||||||
if (p->type() >= FL_WINDOW) break; // don't do the unmap
|
if (p->type() >= FL_WINDOW) break; // don't do the unmap
|
||||||
}
|
}
|
||||||
|
#ifdef __APPLE__
|
||||||
|
hide();
|
||||||
|
set_visible();
|
||||||
|
#else
|
||||||
XUnmapWindow(fl_display, fl_xid(this));
|
XUnmapWindow(fl_display, fl_xid(this));
|
||||||
|
#endif // __APPLE__
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -980,5 +985,5 @@ void Fl_Window::flush() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl.cxx,v 1.24.2.41.2.60 2003/04/09 03:57:06 easysw Exp $".
|
// End of "$Id: Fl.cxx,v 1.24.2.41.2.61 2003/05/20 15:17:12 easysw Exp $".
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user