From f2d87803d3c7f3a41356f70b2cd6fd6276e29d6c Mon Sep 17 00:00:00 2001 From: Leland Lucius Date: Wed, 29 Jul 2015 11:07:32 -0500 Subject: [PATCH] Followup to bug #1099. --- src/Project.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Project.cpp b/src/Project.cpp index 93560fea5..380e57b71 100644 --- a/src/Project.cpp +++ b/src/Project.cpp @@ -491,11 +491,14 @@ AudacityProject *CreateNewAudacityProject() //Create and show a new project AudacityProject *p = new AudacityProject(NULL, -1, - wxPoint(wndRect.x, wndRect.y), + wxDefaultPosition, wxSize(wndRect.width, wndRect.height)); - gAudacityProjects.Add(p); + // wxGTK3 seems to need to require creating the window using default position + // and then manually positioning it. + p->SetPosition(wndRect.GetPosition()); + if(bMaximized) { p->Maximize(true); }