From 6f36b37f03842fa804031be1b4476024a0fbbbbb Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Fri, 30 May 2008 17:44:06 +0000 Subject: [PATCH] Don't update UI if hidden git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/control.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gtk/control.cpp b/src/gtk/control.cpp index 7af2a52fc8..65f8fcdbb4 100644 --- a/src/gtk/control.cpp +++ b/src/gtk/control.cpp @@ -373,7 +373,7 @@ void wxControl::OnInternalIdle() GTKSetDelayedFocusIfNeeded(); } - if ( wxUpdateUIEvent::CanUpdate(this) ) + if ( wxUpdateUIEvent::CanUpdate(this) && IsVisibleOnScreen() ) UpdateWindowUI(wxUPDATE_UI_FROMIDLE); }