]> git.saurik.com Git - wxWidgets.git/commitdiff
Make the focus recursion test only for Mac since it breaks MSW.
authorJulian Smart <julian@anthemion.co.uk>
Fri, 28 May 2004 18:43:27 +0000 (18:43 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Fri, 28 May 2004 18:43:27 +0000 (18:43 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27482 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/containr.cpp

index 69b8fa56aea7a6864958e2de5655947781a61942..51f28331ee100b8548e0b0c67d4e8bdeb5ad97d3 100644 (file)
@@ -342,8 +342,13 @@ bool wxControlContainer::DoSetFocus()
     wxLogTrace(_T("focus"), _T("SetFocus on wxPanel 0x%08lx."),
                (unsigned long)m_winParent->GetHandle());
 
+    // FIXME: this recursion protection is needed for wxMac,
+    // but on Windows (at least), it breaks focus handling.
+    // This needs to be investigated further.
+#ifdef __WXMAC__
     if (m_inSetFocus)
         return true;
+#endif    
 
     m_inSetFocus = true;