1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-30 15:39:27 +02:00

Bug 1432 another case...

...Mac, drag toolbar with the focus on or off dock, won't lose focus.

You still lose focus when dragging another bar to undocked.
This commit is contained in:
Paul Licameli 2017-07-23 15:44:04 -04:00
parent 68a0f29bc2
commit 67b858ed3f

View File

@ -2410,6 +2410,10 @@ void AudacityProject::OnActivate(wxActivateEvent & event)
return;
}
// Let the base class do what it wants...
wxFrame::OnActivate(event);
// ... but then we override its decisions about focus.
mActive = event.GetActive();
// Under Windows, focus can be "lost" when returning to
@ -2441,7 +2445,6 @@ void AudacityProject::OnActivate(wxActivateEvent & event)
MacShowUndockedToolbars(true);
#endif
}
event.Skip();
}
bool AudacityProject::IsActive()