Don't update UI if hidden

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2008-05-30 17:44:06 +00:00
parent 667902fa25
commit 6f36b37f03

View File

@@ -373,7 +373,7 @@ void wxControl::OnInternalIdle()
GTKSetDelayedFocusIfNeeded();
}
if ( wxUpdateUIEvent::CanUpdate(this) )
if ( wxUpdateUIEvent::CanUpdate(this) && IsVisibleOnScreen() )
UpdateWindowUI(wxUPDATE_UI_FROMIDLE);
}