From 477243897abd3598dc4fdb81afd56cc03cfca00b Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 3 Oct 2001 17:44:56 +0000 Subject: [PATCH] fix for focus event sending git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/listctrl.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index b3680c13d5..c0a782866e 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -3393,16 +3393,16 @@ void wxListMainWindow::OnSetFocus( wxFocusEvent &WXUNUSED(event) ) // EVT_KILL_FOCUS before which means that we finish by redrawing the items // which are already drawn correctly resulting in horrible flicker - avoid // it - if ( m_hasFocus ) - return; + if ( !m_hasFocus ) + { + m_hasFocus = TRUE; - m_hasFocus = TRUE; + RefreshSelected(); + } - if (!GetParent()) + if ( !GetParent() ) return; - RefreshSelected(); - #ifdef __WXGTK__ g_focusWindow = GetParent(); #endif -- 2.45.2