X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0f02d3d0ec5c415e222929d9fe587a603772fade..4c7852186d48a5b8f406462c2c3fa020f0a052bb:/src/common/appcmn.cpp?ds=sidebyside diff --git a/src/common/appcmn.cpp b/src/common/appcmn.cpp index 49dfb98eed..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