]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mgl/window.cpp
fix wrong clear selection (modified patch 1763916)
[wxWidgets.git] / src / mgl / window.cpp
index 70a9ffaf6431198e81ef573bff178f34d7e1e866..85f2abeee3d5417af7718dcfcae3321ec0e0cf1b 100644 (file)
@@ -184,7 +184,7 @@ static ibool MGLAPI wxWindowMouseHandler(window_t *wnd, event_t *e)
     {
         case EVT_MOUSEDOWN:
             // Change focus if the user clicks outside focused window:
-            if ( win->AcceptsFocus() && wxWindow::FindFocus() != win )
+            if ( win->CanAcceptFocus() && wxWindow::FindFocus() != win )
                 win->SetFocus();
 
             if ( e->message & EVT_DBLCLICK )