X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bd2e08d06528b2014a4acf878e91fee4696d0666..3201a1046ba71ba8e5ef2ed694fde34d12f743f3:/src/gtk/control.cpp diff --git a/src/gtk/control.cpp b/src/gtk/control.cpp index c2959403d6..302c5018b6 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) && IsShownOnScreen() ) UpdateWindowUI(wxUPDATE_UI_FROMIDLE); }