X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c978d36124197b5612a2cabefed7591ad0eea6e2..999c13cc6540e85956fcd6d5d145c907ebeb5393:/src/x11/reparent.cpp diff --git a/src/x11/reparent.cpp b/src/x11/reparent.cpp index 349aea15e8..7a64824265 100644 --- a/src/x11/reparent.cpp +++ b/src/x11/reparent.cpp @@ -22,6 +22,9 @@ #endif #include "wx/x11/reparent.h" + +#if !wxUSE_NANOX + #include "wx/evtloop.h" #include "wx/log.h" #include "wx/app.h" @@ -144,7 +147,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 */ @@ -320,3 +330,4 @@ WXWindow wxReparenter::FindAClientWindow(WXWindow window, const wxString& name) } return (WXWindow) result; } +#endif