mimic wxMSW wxSetCursorEvent propagation behavior, closes #15801

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75888 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Paul Cornett
2014-02-15 18:14:48 +00:00
parent 8762e50748
commit 320a5da559

View File

@@ -1541,6 +1541,9 @@ static void SendSetCursorEvent(wxWindow* win, int x, int y)
win->m_needCursorReset = true;
return;
}
// this is how wxMSW works...
if (w->GetCursor().IsOk())
break;
w = w->GetParent();
} while (w);
if (win->m_needCursorReset)