From 413d9295ace48c99bc66b1f9ac722e87cc851227 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Mon, 18 Jun 2007 13:08:57 +0000 Subject: #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 --- src/Fl_x.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Fl_x.cxx') diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index 5603b22c8..7121cc8d9 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -1134,9 +1134,9 @@ void Fl_X::make_xid(Fl_Window* win, XVisualInfo *visual, Colormap colormap) if (Y < scr_y) Y = scr_y; } - // if the window is a subwindow and our parent is not mapped, we - // mark this window visible, so that mapping the parent later will - // call this function again. + // 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 (win->parent() && !Fl_X::i(win->window())) { win->set_visible(); return; -- cgit v1.2.3