]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/control.cpp
progress message passed to wxDC::StartDoc() is not appropriate for PostScript documen...
[wxWidgets.git] / src / gtk / control.cpp
index c2959403d6a35f86d00d34c27f9fef6007dd91e5..302c5018b610551bb0ace968651c71a0ec519eb9 100644 (file)
@@ -297,7 +297,7 @@ void wxControl::OnInternalIdle()
         GTKUpdateCursor();
     }
 
-    if ( wxUpdateUIEvent::CanUpdate(this) )
+    if ( wxUpdateUIEvent::CanUpdate(this) && IsShownOnScreen() )
         UpdateWindowUI(wxUPDATE_UI_FROMIDLE);
 }