git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50867
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// find the immediate child under which the window receiving focus is:
wxWindow *win = event.GetWindow();
// find the immediate child under which the window receiving focus is:
wxWindow *win = event.GetWindow();
+
+ if ( win == m_targetWindow )
+ return; // nothing to do
+
while ( win->GetParent() != m_targetWindow )
{
win = win->GetParent();
while ( win->GetParent() != m_targetWindow )
{
win = win->GetParent();