mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-07 23:51:14 +02: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:
parent
2585f11e96
commit
450615867e
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user