X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/53a118d6fe4ecbeda81c0eb2bef65e204b3588ad..39c20230ba7ca49fbdfd7c558b4669ddc15ba4aa:/src/msw/window.cpp

diff --git a/src/msw/window.cpp b/src/msw/window.cpp
index 4617bdd7b3..484177c102 100644
--- a/src/msw/window.cpp
+++ b/src/msw/window.cpp
@@ -2742,7 +2742,7 @@ WXLRESULT wxWindowMSW::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM l
                     // problems, so don't do it for them (unnecessary anyhow)
                     if ( !win->IsOfStandardClass() )
                     {
-                        if ( message == WM_LBUTTONDOWN && win->CanAcceptFocus() )
+                        if ( message == WM_LBUTTONDOWN && win->IsFocusable() )
                             win->SetFocus();
                     }
                 }