X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b1f17bf00ff1480a50a657674b974c40da82eda1..3201a1046ba71ba8e5ef2ed694fde34d12f743f3:/src/gtk/control.cpp diff --git a/src/gtk/control.cpp b/src/gtk/control.cpp index ea16fae76a..302c5018b6 100644 --- a/src/gtk/control.cpp +++ b/src/gtk/control.cpp @@ -295,11 +295,9 @@ void wxControl::OnInternalIdle() if ( GTK_WIDGET_REALIZED(m_widget) ) { GTKUpdateCursor(); - - GTKSetDelayedFocusIfNeeded(); } - if ( wxUpdateUIEvent::CanUpdate(this) ) + if ( wxUpdateUIEvent::CanUpdate(this) && IsShownOnScreen() ) UpdateWindowUI(wxUPDATE_UI_FROMIDLE); }