From: Vadim Zeitlin Date: Fri, 25 Aug 2006 16:05:56 +0000 (+0000) Subject: shouldn't update cursor for hidden windows X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6c6a3e8a23c19b03e201800b661dd3887d1e1db0 shouldn't update cursor for hidden windows git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/control.cpp b/src/gtk/control.cpp index 0fe56326ee..22f7bfcd03 100644 --- a/src/gtk/control.cpp +++ b/src/gtk/control.cpp @@ -374,10 +374,13 @@ void wxControl::OnInternalIdle() { if ( GtkShowFromOnIdle() ) return; - - GTKUpdateCursor(); - GTKSetDelayedFocusIfNeeded(); + if ( IsShown() ) + { + GTKUpdateCursor(); + + GTKSetDelayedFocusIfNeeded(); + } if ( wxUpdateUIEvent::CanUpdate(this) ) UpdateWindowUI(wxUPDATE_UI_FROMIDLE);