1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-25 08:38:39 +02:00

Bug 1607 - 2nd Screen issue with MixerBoard and Karaoke Window

Also Screenshot tools.  No joy for log-window, as that is created before Audacity starts up and recognises it is on the second screen.
This commit is contained in:
James Crook 2017-05-14 17:36:18 +01:00
parent c8b2cc9d31
commit 18cec363c3
3 changed files with 5 additions and 2 deletions

View File

@ -130,6 +130,7 @@ LyricsWindow::LyricsWindow(AudacityProject *parent):
wxCommandEventHandler(LyricsWindow::OnTimer),
NULL,
this);
Center();
}
LyricsWindow::~LyricsWindow()

View File

@ -1513,6 +1513,7 @@ MixerBoardFrame::MixerBoardFrame(AudacityProject* parent)
SetIcon(ic);
}
#endif
Center();
}
MixerBoardFrame::~MixerBoardFrame()

View File

@ -120,7 +120,7 @@ ScreenFramePtr mFrame;
void OpenScreenshotTools()
{
if (!mFrame) {
mFrame = ScreenFramePtr{ safenew ScreenFrame(NULL, -1) };
mFrame = ScreenFramePtr{ safenew ScreenFrame(wxGetApp().GetTopWindow(), -1) };
}
mFrame->Show();
mFrame->Raise();
@ -298,6 +298,7 @@ ScreenFrame::ScreenFrame(wxWindow * parent, wxWindowID id)
// The monitoring will switch off temporarily
// because we've switched monitor mid play.
mContext.GetProject()->GetToolManager()->Reset();
Center();
}
ScreenFrame::~ScreenFrame()