]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/appcmn.cpp
warning in Unicode compilation fixed
[wxWidgets.git] / src / common / appcmn.cpp
index 49dfb98eed528e1194cea145139ed8f1f16d1fbd..608a40ea4e023baa1930d4ba6fd262d222963da2 100644 (file)
@@ -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