Only reparent first window if there are several children
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14557 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -144,7 +144,14 @@ bool wxReparenter::Reparent(wxWindow* newParent, wxAdoptedWindow* toReparent)
|
|||||||
|
|
||||||
if (numchildren > 0)
|
if (numchildren > 0)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Reparenting %d children.\n", numchildren);
|
// TEST: see if we can get away with reparenting just
|
||||||
|
// first one
|
||||||
|
if (numchildren > 1)
|
||||||
|
{
|
||||||
|
wxLogDebug(wxT("Found %d, but only reparenting 1 child."), numchildren);
|
||||||
|
numchildren = 1;
|
||||||
|
}
|
||||||
|
wxLogDebug(wxT("Reparenting %d children."), numchildren);
|
||||||
/* Stacking order is preserved since XQueryTree returns its children in
|
/* Stacking order is preserved since XQueryTree returns its children in
|
||||||
bottommost to topmost order
|
bottommost to topmost order
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user