parent
2ffa88d076
commit
8eaf9915c1
|
@ -432,9 +432,17 @@ void TOOL_DISPATCHER::DispatchWxEvent( wxEvent& aEvent )
|
|||
{
|
||||
wxWindow* window = dynamic_cast<wxWindow*>( m_toolMgr->GetToolHolder() );
|
||||
|
||||
#if defined( _WIN32 )
|
||||
// Mouse events may trigger regardless of window status (windows feature)
|
||||
// However we need to avoid focus fighting (especially modals)
|
||||
if( window && window->GetHWND() == GetForegroundWindow() )
|
||||
#else
|
||||
if( window )
|
||||
#endif
|
||||
{
|
||||
window->SetFocus();
|
||||
}
|
||||
}
|
||||
|
||||
// Mouse handling
|
||||
// Note: wxEVT_LEFT_DOWN event must always be skipped.
|
||||
|
|
Loading…
Reference in New Issue