diff --git a/src/gtk/popupwin.cpp b/src/gtk/popupwin.cpp index f2d3a67520..2ccbf66336 100644 --- a/src/gtk/popupwin.cpp +++ b/src/gtk/popupwin.cpp @@ -181,6 +181,9 @@ bool wxPopupWindow::Create( wxWindow *parent, int style ) return FALSE; } + // Unlike windows, top level windows are created hidden by default. + m_isShown = false; + // All dialogs should really have this style m_windowStyle |= wxTAB_TRAVERSAL; diff --git a/src/gtk1/popupwin.cpp b/src/gtk1/popupwin.cpp index f2d3a67520..2ccbf66336 100644 --- a/src/gtk1/popupwin.cpp +++ b/src/gtk1/popupwin.cpp @@ -181,6 +181,9 @@ bool wxPopupWindow::Create( wxWindow *parent, int style ) return FALSE; } + // Unlike windows, top level windows are created hidden by default. + m_isShown = false; + // All dialogs should really have this style m_windowStyle |= wxTAB_TRAVERSAL;