X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/61bd618fe776bac0d54ef51b14d706da394a2635..2fe212b0336512aac9eace69fab09ce856b0bf4b:/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);