]> git.saurik.com Git - wxWidgets.git/commitdiff
don't set cursor for not realized (and not only hidden) windows
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 25 Aug 2006 22:50:30 +0000 (22:50 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 25 Aug 2006 22:50:30 +0000 (22:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40832 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/control.cpp

index 22f7bfcd038227326739e507163c6db9303a4347..9641245f398431d6079e6773f10aad799b50936d 100644 (file)
@@ -375,7 +375,7 @@ void wxControl::OnInternalIdle()
     if ( GtkShowFromOnIdle() )
         return;
 
-    if ( IsShown() )
+    if ( GTK_WIDGET_REALIZED(m_widget) )
     {
         GTKUpdateCursor();