diff --git a/src/osx/cocoa/nonownedwnd.mm b/src/osx/cocoa/nonownedwnd.mm index 229e744230..a11208f4ad 100644 --- a/src/osx/cocoa/nonownedwnd.mm +++ b/src/osx/cocoa/nonownedwnd.mm @@ -126,6 +126,20 @@ bool shouldHandleSelector(SEL selector) ((wxWidgetCocoaImpl*)cw->GetPeer())->DoHandleMouseEvent( event); handled = true; } + else if ( [event type] == NSMouseMoved ) + { + NSPoint nsPoint = [event locationInWindow]; + if ( [event window] != nil ) + nsPoint = [[event window] convertBaseToScreen:nsPoint]; + + wxPoint pt = wxFromNSPoint(NULL, nsPoint); + wxWindow* mw = ::wxFindWindowAtPoint(pt); + if ( mw ) + { + ((wxWidgetCocoaImpl*)mw->GetPeer())->DoHandleMouseEvent( event); + handled = true; + } + } } return handled; }