X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/15678bec37c6e3cb8a67a8b041579af595d4ccf3..268766dd1f2a2d4d593d1d65893f62b5753ff20b:/src/mgl/toplevel.cpp diff --git a/src/mgl/toplevel.cpp b/src/mgl/toplevel.cpp index 5829d32f97..595b1a828b 100644 --- a/src/mgl/toplevel.cpp +++ b/src/mgl/toplevel.cpp @@ -82,8 +82,6 @@ bool wxTopLevelWindowMGL::Create(wxWindow *parent, wxTopLevelWindows.Append(this); m_title = title; - - // FIXME_MGL -- should activate itself when shown! return TRUE; } @@ -136,6 +134,15 @@ bool wxTopLevelWindowMGL::ShowFullScreen(bool show, long style) return TRUE; } +bool wxTopLevelWindowMGL::Show(bool show) +{ + bool ret = wxTopLevelWindowBase::Show(show); + if ( ret && show && AcceptsFocus() ) + SetFocus(); + // FIXME_MGL -- don't do this for popup windows? + return ret; +} + void wxTopLevelWindowMGL::Maximize(bool maximize) { if ( maximize && !m_isMaximized )