]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/mousemanager.cpp
attempt to get the 'new focus' window parameter of a focus kill event set correctly
[wxWidgets.git] / src / common / mousemanager.cpp
index 0e9475f580ab86683082797be5be2fe906abc8a5..20849a0167ae489cf12a8488105f723e079242e7 100644 (file)
@@ -103,6 +103,7 @@ void wxMouseEventsManager::OnLeftDown(wxMouseEvent& event)
     }
 
     m_state = State_Pressed;
+    m_win->SetFocus();
     m_win->CaptureMouse();
     MouseClickBegin(m_item);
 }