generate wxEVT_ACTIVATE_APP events for wxMSW too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11456 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
00b4a13e0c
commit
66dfed9b9d
@ -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
|
||||
|
@ -2786,11 +2786,6 @@ void wxWindowGTK::OnInternalIdle()
|
||||
g_sendActivateEvent = -1;
|
||||
|
||||
wxTheApp->SetActive(activate, (wxWindow *)g_focusWindowLast);
|
||||
|
||||
wxActivateEvent event(wxEVT_ACTIVATE_APP, activate, GetId());
|
||||
event.SetEventObject(this);
|
||||
|
||||
(void)GetEventHandler()->ProcessEvent(event);
|
||||
}
|
||||
|
||||
wxCursor cursor = m_cursor;
|
||||
|
@ -2786,11 +2786,6 @@ void wxWindowGTK::OnInternalIdle()
|
||||
g_sendActivateEvent = -1;
|
||||
|
||||
wxTheApp->SetActive(activate, (wxWindow *)g_focusWindowLast);
|
||||
|
||||
wxActivateEvent event(wxEVT_ACTIVATE_APP, activate, GetId());
|
||||
event.SetEventObject(this);
|
||||
|
||||
(void)GetEventHandler()->ProcessEvent(event);
|
||||
}
|
||||
|
||||
wxCursor cursor = m_cursor;
|
||||
|
Loading…
Reference in New Issue
Block a user