]> git.saurik.com Git - wxWidgets.git/commitdiff
don't send mouse events to disabled windows (this really shouldn't be possible as...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 4 Mar 2006 22:09:40 +0000 (22:09 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 4 Mar 2006 22:09:40 +0000 (22:09 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37803 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/toplevel.cpp

index 7a58cf75068075c8fe4d06bbce9449fdc4faa6b8..c4cd59574e1a60448f864b90916b226643c7ea43 100644 (file)
@@ -497,6 +497,10 @@ pascal OSStatus wxMacTopLevelMouseEventHandler( EventHandlerCallRef handler , Ev
 #endif
                 }
             }
 #endif
                 }
             }
+
+            // disabled windows must not get any input messages
+            if ( currentMouseWindow && !currentMouseWindow->MacIsReallyEnabled() )
+                currentMouseWindow = NULL;
         }
     }
 
         }
     }