]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/toplevel.cpp
Warning fix.
[wxWidgets.git] / src / mac / carbon / toplevel.cpp
index 7a58cf75068075c8fe4d06bbce9449fdc4faa6b8..c4cd59574e1a60448f864b90916b226643c7ea43 100644 (file)
@@ -497,6 +497,10 @@ pascal OSStatus wxMacTopLevelMouseEventHandler( EventHandlerCallRef handler , Ev
 #endif
                 }
             }
+
+            // disabled windows must not get any input messages
+            if ( currentMouseWindow && !currentMouseWindow->MacIsReallyEnabled() )
+                currentMouseWindow = NULL;
         }
     }