1
0
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:
lllucius 2013-10-15 13:13:54 +00:00
parent 2585f11e96
commit 450615867e

View File

@ -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();
}