]> git.saurik.com Git - wxWidgets.git/commitdiff
shouldn't update cursor for hidden windows
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 25 Aug 2006 16:05:56 +0000 (16:05 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 25 Aug 2006 16:05:56 +0000 (16:05 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/control.cpp

index 0fe56326eeed3051fbeae6d8f0589b228e13441b..22f7bfcd038227326739e507163c6db9303a4347 100644 (file)
@@ -374,10 +374,13 @@ void wxControl::OnInternalIdle()
 {
     if ( GtkShowFromOnIdle() )
         return;
-    
-    GTKUpdateCursor();
 
-    GTKSetDelayedFocusIfNeeded();
+    if ( IsShown() )
+    {
+        GTKUpdateCursor();
+
+        GTKSetDelayedFocusIfNeeded();
+    }
 
     if ( wxUpdateUIEvent::CanUpdate(this) )
         UpdateWindowUI(wxUPDATE_UI_FROMIDLE);