X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..76e7cfab8fdb0c7862fd07e427af54181717fc62:/src/x11/reparent.cpp diff --git a/src/x11/reparent.cpp b/src/x11/reparent.cpp index 24baa7b662..b55b87221a 100644 --- a/src/x11/reparent.cpp +++ b/src/x11/reparent.cpp @@ -4,7 +4,6 @@ // Author: Julian Smart // Modified by: // Created: 2002-03-09 -// RCS-ID: $Id$ // Copyright: (c) Julian Smart // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -89,12 +88,12 @@ bool wxReparenter::Reparent(wxWindow* newParent, wxAdoptedWindow* toReparent) old = XSetErrorHandler(ErrorHandler); XReparentWindow( wxGlobalDisplay(), - (Window) toReparent->GetMainWindow(), - (Window) newParent->GetMainWindow(), + (Window) toReparent->X11GetMainWindow(), + (Window) newParent->X11GetMainWindow(), 0, 0); if (!XQueryTree( wxGlobalDisplay(), - (Window) toReparent->GetMainWindow(), + (Window) toReparent->X11GetMainWindow(), &returnroot, &returnparent, &children, &numchildren) || Xerror) { @@ -123,7 +122,7 @@ bool wxReparenter::Reparent(wxWindow* newParent, wxAdoptedWindow* toReparent) "Reparenting child at offset %d and position %d, %d.\n", parentOffset, parentOffset+xwa.x, parentOffset+xwa.y); XReparentWindow( wxGlobalDisplay(), - children[each], (Window) newParent->GetMainWindow(), + children[each], (Window) newParent->X11GetMainWindow(), xwa.x, xwa.y); } }