From: Julian Smart Date: Mon, 11 Mar 2002 15:47:44 +0000 (+0000) Subject: Only reparent first window if there are several children X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/046ba576a87ba4b7cec4e4ff50820fb5bf67848f 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 --- diff --git a/src/x11/reparent.cpp b/src/x11/reparent.cpp index 349aea15e8..2a57d3d339 100644 --- a/src/x11/reparent.cpp +++ b/src/x11/reparent.cpp @@ -144,7 +144,14 @@ bool wxReparenter::Reparent(wxWindow* newParent, wxAdoptedWindow* toReparent) 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 bottommost to topmost order */