X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/968978c0e4e9b4c59cfa6ff811610efdb720c068..632e5093093c6bcc8f791001e8d93436e712c1aa:/src/osx/cocoa/nonownedwnd.mm diff --git a/src/osx/cocoa/nonownedwnd.mm b/src/osx/cocoa/nonownedwnd.mm index 81ecf321aa..a83bd48ba0 100644 --- a/src/osx/cocoa/nonownedwnd.mm +++ b/src/osx/cocoa/nonownedwnd.mm @@ -131,22 +131,6 @@ 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 ) - { - if (wxTheApp) - wxTheApp->MacSetCurrentEvent(event, NULL); - ((wxWidgetCocoaImpl*)mw->GetPeer())->DoHandleMouseEvent( event); - handled = true; - } - } if ( handled ) { if (wxTheApp) @@ -654,8 +638,6 @@ long style, long extraStyle, const wxString& WXUNUSED(name) ) [m_macWindow setDelegate:controller]; - [m_macWindow setAcceptsMouseMovedEvents: YES]; - if ( ( style & wxFRAME_SHAPED) ) { [m_macWindow setOpaque:NO];