Don't send a huge number of unneeded wxChildFocusEvents.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 25 May 2012 09:48:22 +0000 (09:48 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 25 May 2012 09:48:22 +0000 (09:48 +0000)
commit44f4f7dda0e604608f0344d72a88c3920f69d035
tree3f21ee61d896965dec2901eabef2dfea4c9c1c88
parent005a8a4c77b187975ddddd05304ce9f40fcae729
Don't send a huge number of unneeded wxChildFocusEvents.

wxControlContainer::SetLastFocus() propagated wxChildFocusEvent explicitly to
its parent but this is not needed because wxChildFocusEvents propagate by
default, being derived from wxCommandEvent. And doing it again resulted in the
total number of events increasing exponentially with the depth of the window
hierarchy and real performance problems due to processing all of them.

Closes #14310.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71559 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/containr.cpp