fix for focus event sending
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3393,16 +3393,16 @@ void wxListMainWindow::OnSetFocus( wxFocusEvent &WXUNUSED(event) )
|
|||||||
// EVT_KILL_FOCUS before which means that we finish by redrawing the items
|
// EVT_KILL_FOCUS before which means that we finish by redrawing the items
|
||||||
// which are already drawn correctly resulting in horrible flicker - avoid
|
// which are already drawn correctly resulting in horrible flicker - avoid
|
||||||
// it
|
// it
|
||||||
if ( m_hasFocus )
|
if ( !m_hasFocus )
|
||||||
return;
|
{
|
||||||
|
|
||||||
m_hasFocus = TRUE;
|
m_hasFocus = TRUE;
|
||||||
|
|
||||||
|
RefreshSelected();
|
||||||
|
}
|
||||||
|
|
||||||
if ( !GetParent() )
|
if ( !GetParent() )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
RefreshSelected();
|
|
||||||
|
|
||||||
#ifdef __WXGTK__
|
#ifdef __WXGTK__
|
||||||
g_focusWindow = GetParent();
|
g_focusWindow = GetParent();
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user