]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't trigger kill focus event twice
authorJulian Smart <julian@anthemion.co.uk>
Sat, 3 May 2008 19:53:53 +0000 (19:53 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sat, 3 May 2008 19:53:53 +0000 (19:53 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53437 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/toplevel.cpp

index f87a9827358e98aedce67319b35455759fd780bf..11aa012a7f2afc2264d430c78d3e66aca308a3c8 100644 (file)
@@ -1221,7 +1221,9 @@ void wxTopLevelWindowMSW::OnActivate(wxActivateEvent& event)
         if ( m_winLastFocused )
         {
             // let it know that it doesn't have focus any more
-            m_winLastFocused->HandleKillFocus((WXHWND)NULL);
+            // But this will already be done via WM_KILLFOCUS, so we'll get two kill
+            // focus events if we call it explicitly.
+            // m_winLastFocused->HandleKillFocus((WXHWND)NULL);
 
             // and don't remember it if it's a child from some other frame
             if ( wxGetTopLevelParent(m_winLastFocused) != this )