diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2007-06-18 13:08:57 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2007-06-18 13:08:57 +0000 |
| commit | 413d9295ace48c99bc66b1f9ac722e87cc851227 (patch) | |
| tree | a44fe997a0688e4c79b2aa8648bffec4cc2bb960 /src/Fl_win32.cxx | |
| parent | 933ce8bf0705d968d46ccd912a34ee53f159e9be (diff) | |
#1706: on WIN32, the attempt to map a subwindow when the parent window was not mapped yet would result in the subwindow never being mapped. This change will defer mapping until the parent window is shown.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5914 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_win32.cxx')
| -rw-r--r-- | src/Fl_win32.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index 607b8b750..a330b4dd0 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -1188,6 +1188,14 @@ int fl_disable_transient_for; // secret method of removing TRANSIENT_FOR Fl_X* Fl_X::make(Fl_Window* w) { Fl_Group::current(0); // get rid of very common user bug: forgot end() + // if the window is a subwindow and our parent is not mapped yet, we + // mark this window visible, so that mapping the parent at a later + // point in time will call this function again to finally map the subwindow. + if (w->parent() && !Fl_X::i(w->window())) { + w->set_visible(); + return 0L; + } + static NameList class_name_list; static const char *first_class_name = 0L; const char *class_name = w->xclass(); |
