]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/window.cpp
don't check whether the window is shown and enabled in AcceptsFocus() itself
[wxWidgets.git] / src / os2 / window.cpp
index 3a80c6337d5a721fa14a2bc474b865a7d71e4b4d..43c6a8f13ab6ba3dc73a638292f443bdb0ad3859 100644 (file)
@@ -2358,7 +2358,7 @@ MRESULT wxWindowOS2::OS2WindowProc( WXUINT uMsg,
                                                                   );
                     if (!pWin->IsOfStandardClass())
                     {
-                        if (uMsg == WM_BUTTON1DOWN && pWin->AcceptsFocus() )
+                        if (uMsg == WM_BUTTON1DOWN && pWin->CanAcceptFocus() )
                             pWin->SetFocus();
                     }
                     bProcessed = pWin->HandleMouseEvent( uMsg