X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/57591e0edb8cbaa2b12e4a0da68fe445fa636747..0f05afccede840e04872bfc82103b689b8edc447:/src/msw/window.cpp diff --git a/src/msw/window.cpp b/src/msw/window.cpp index c7b28bac0b..e6d0d10345 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -1897,7 +1897,8 @@ long wxWindow::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam) case WM_LBUTTONDOWN: // set focus to this window - SetFocus(); + if (AcceptsFocus()) + SetFocus(); // fall through