X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/06a7419e7163348a8a3a4e376db5634a691c2e48..977d15a6ae64752c3ae70824c115229ecbe98403:/src/gtk/control.cpp diff --git a/src/gtk/control.cpp b/src/gtk/control.cpp index 0fe56326ee..9641245f39 100644 --- a/src/gtk/control.cpp +++ b/src/gtk/control.cpp @@ -374,10 +374,13 @@ void wxControl::OnInternalIdle() { if ( GtkShowFromOnIdle() ) return; - - GTKUpdateCursor(); - GTKSetDelayedFocusIfNeeded(); + if ( GTK_WIDGET_REALIZED(m_widget) ) + { + GTKUpdateCursor(); + + GTKSetDelayedFocusIfNeeded(); + } if ( wxUpdateUIEvent::CanUpdate(this) ) UpdateWindowUI(wxUPDATE_UI_FROMIDLE);