From 7b32a8b736d33cdab7eba7592d2be34975d2c11d Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Fri, 30 May 2008 17:44:52 +0000 Subject: [PATCH] Don't update UI if hidden git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53848 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 c2959403d6..a92d109556 100644 --- a/src/gtk/control.cpp +++ b/src/gtk/control.cpp @@ -297,7 +297,7 @@ void wxControl::OnInternalIdle() GTKUpdateCursor(); } - if ( wxUpdateUIEvent::CanUpdate(this) ) + if ( wxUpdateUIEvent::CanUpdate(this) && IsVisibleOnScreen() ) UpdateWindowUI(wxUPDATE_UI_FROMIDLE); } -- 2.45.2