]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't update UI if hidden
authorJulian Smart <julian@anthemion.co.uk>
Fri, 30 May 2008 17:44:52 +0000 (17:44 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Fri, 30 May 2008 17:44:52 +0000 (17:44 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53848 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/control.cpp

index c2959403d6a35f86d00d34c27f9fef6007dd91e5..a92d10955644de1b2b25148e72258a82d659f6ab 100644 (file)
@@ -297,7 +297,7 @@ void wxControl::OnInternalIdle()
         GTKUpdateCursor();
     }
 
-    if ( wxUpdateUIEvent::CanUpdate(this) )
+    if ( wxUpdateUIEvent::CanUpdate(this) && IsVisibleOnScreen() )
         UpdateWindowUI(wxUPDATE_UI_FROMIDLE);
 }