shouldn't update cursor for hidden windows

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-08-25 16:05:56 +00:00
parent 73865dad6e
commit 6c6a3e8a23

View File

@@ -374,10 +374,13 @@ void wxControl::OnInternalIdle()
{
if ( GtkShowFromOnIdle() )
return;
GTKUpdateCursor();
GTKSetDelayedFocusIfNeeded();
if ( IsShown() )
{
GTKUpdateCursor();
GTKSetDelayedFocusIfNeeded();
}
if ( wxUpdateUIEvent::CanUpdate(this) )
UpdateWindowUI(wxUPDATE_UI_FROMIDLE);