1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-04 09:39:42 +02:00

Bug1358: On Mac, undocked toolbars and screenshot window should not vanish...

... when switching from Audacity to another application.
This commit is contained in:
Paul Licameli 2016-04-11 06:40:13 -04:00
parent 72ad1f3ecc
commit b0c55e4386
2 changed files with 11 additions and 1 deletions

View File

@ -268,11 +268,19 @@ std::unique_ptr<ScreenshotCommand> ScreenFrame::CreateCommand()
ScreenFrame::ScreenFrame(wxWindow * parent, wxWindowID id)
: wxFrame(parent, id, _("Screen Capture Frame"),
wxDefaultPosition, wxDefaultSize,
#if !defined(__WXMSW__)
wxFRAME_TOOL_WINDOW|
#if !defined(__WXMAC__) // bug1358
wxFRAME_TOOL_WINDOW |
#endif
#else
wxSTAY_ON_TOP|
#endif
wxSYSTEM_MENU|wxCAPTION|wxCLOSE_BOX),
mContext(&wxGetApp(), GetActiveProject())
{

View File

@ -90,7 +90,9 @@ class ToolFrame final : public wxFrame
wxDefaultSize,
wxNO_BORDER |
wxFRAME_NO_TASKBAR |
#if !defined(__WXMAC__) // bug1358
wxFRAME_TOOL_WINDOW |
#endif
wxFRAME_FLOAT_ON_PARENT )
{
int width = bar->GetSize().x;