]> git.saurik.com Git - wxWidgets.git/blobdiff - src/x11/reparent.cpp
minor fix to wxDC::SetClippingRegion
[wxWidgets.git] / src / x11 / reparent.cpp
index 349aea15e8c1541df4f4abecea9a539461c194b3..7a6482426582180d25f4232aeddb9478f490156e 100644 (file)
@@ -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