mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-21 16:37:12 +01:00
Focus for main Audacity window on Linux broken as of r12667 due to
the change setting focus when it should not have been. This change restricts focus setting to dialogs only.
This commit is contained in:
@@ -1003,7 +1003,8 @@ int AudacityApp::FilterEvent(wxEvent & event)
|
||||
if (event.GetEventType() == wxEVT_ACTIVATE)
|
||||
{
|
||||
wxActivateEvent & e = (wxActivateEvent &) event;
|
||||
if (e.GetEventObject() && e.GetActive())
|
||||
|
||||
if (e.GetEventObject() && e.GetActive() && e.GetEventObject()->IsKindOf(CLASSINFO(wxDialog)))
|
||||
{
|
||||
((wxWindow *)e.GetEventObject())->SetFocus();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user