]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/control.cpp
use IMPLEMENT_APP_CONSOLE and not IMPLEMENT_APP for console apps
[wxWidgets.git] / src / gtk / control.cpp
index ea16fae76ada5c3137eb01bf789742f0555d309b..302c5018b610551bb0ace968651c71a0ec519eb9 100644 (file)
@@ -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);
 }