Only give capture to wxPopupTransientWindow child if it's the only one.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 18 Aug 2013 13:28:28 +0000 (13:28 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 18 Aug 2013 13:28:28 +0000 (13:28 +0000)
commit60435227b10297510316a88f67758fb6b6d93c10
tree77a693b0c91f3369826cbc4c494a2247c5c08394
parent5f9e369af0c834bbde0f7f5d2047abd736967f58
Only give capture to wxPopupTransientWindow child if it's the only one.

This removes the arbitrariness of using the first child which didn't make any
sense when the popup had several controls inside it, e.g. in wxRichToolTip
case this resulted in the mouse capture being given to wxStaticBitmap showing
the tooltip icon even though it didn't need it at all.

This probably doesn't really change the observable behaviour but seems more
logical.

See #15288.

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