X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/61bd618fe776bac0d54ef51b14d706da394a2635..f056ea60f3a14553a7ca76451f45ebd4d1ecd58b:/src/mgl/toplevel.cpp diff --git a/src/mgl/toplevel.cpp b/src/mgl/toplevel.cpp index 595b1a828b..3f2bbcd209 100644 --- a/src/mgl/toplevel.cpp +++ b/src/mgl/toplevel.cpp @@ -77,7 +77,10 @@ bool wxTopLevelWindowMGL::Create(wxWindow *parent, size.y = sizeDpy.y / 5; } - wxWindow::Create(parent, id, pos, sizeOrig, style, name); + wxWindow::Create(NULL, id, pos, sizeOrig, style, name); + SetParent(parent); + if ( parent ) + parent->AddChild(this); wxTopLevelWindows.Append(this);