From: Stefan Csomor Date: Sun, 10 Mar 2013 22:13:41 +0000 (+0000) Subject: supporting also mouse entered / exited events which are not sent to the deepest child... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2be6dfe6c5b487b722c7fecee3b6a7fb9f0d7cc7?hp=97e015d1fa8809c8f1cd62a59e55a3ec1da2e85f supporting also mouse entered / exited events which are not sent to the deepest child window, refs #15072 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73641 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/osx/cocoa/window.mm b/src/osx/cocoa/window.mm index c114df5485..faaff0b350 100644 --- a/src/osx/cocoa/window.mm +++ b/src/osx/cocoa/window.mm @@ -1180,7 +1180,7 @@ void wxWidgetCocoaImpl::mouseEvent(WX_NSEvent event, WXWidget slf, void *_cmd) { // we are getting moved events for all windows in the hierarchy, not something wx expects // therefore we only handle it for the deepest child in the hierarchy - if ( [event type] == NSMouseMoved ) + if ( 1 /* [event type] == NSMouseMoved */ ) { NSView* hitview = [[[slf window] contentView] hitTest:[event locationInWindow]]; if ( hitview == NULL || hitview != slf)