X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a5f1fd3e33d25740ad47e4755868c74a58c0f9eb..243d4b360385d3364e96d5600f693139e359fb3b:/src/common/appcmn.cpp?ds=sidebyside diff --git a/src/common/appcmn.cpp b/src/common/appcmn.cpp index 3de3b7cd2b..608a40ea4e 100644 --- a/src/common/appcmn.cpp +++ b/src/common/appcmn.cpp @@ -141,7 +141,15 @@ void wxAppBase::ProcessPendingEvents() void wxAppBase::SetActive(bool active, wxWindow * WXUNUSED(lastFocus)) { + if ( active == m_isActive ) + return; + m_isActive = active; + + wxActivateEvent event(wxEVT_ACTIVATE_APP, active); + event.SetEventObject(this); + + (void)ProcessEvent(event); } #endif // wxUSE_GUI @@ -206,7 +214,7 @@ void wxAppBase::OnInitCmdLine(wxCmdLineParser& parser) OPTION_VERBOSE, gettext_noop("generate verbose log messages") }, -#endif wxUSE_LOG +#endif // wxUSE_LOG #ifdef __WXUNIVERSAL__ {