diff --git a/src/gtk/control.cpp b/src/gtk/control.cpp index 0fe56326ee..22f7bfcd03 100644 --- a/src/gtk/control.cpp +++ b/src/gtk/control.cpp @@ -374,10 +374,13 @@ void wxControl::OnInternalIdle() { if ( GtkShowFromOnIdle() ) return; - - GTKUpdateCursor(); - GTKSetDelayedFocusIfNeeded(); + if ( IsShown() ) + { + GTKUpdateCursor(); + + GTKSetDelayedFocusIfNeeded(); + } if ( wxUpdateUIEvent::CanUpdate(this) ) UpdateWindowUI(wxUPDATE_UI_FROMIDLE);