- int x, y;
-
- x = y = 0;
- win->MacWindowToRootWindow( &x, &y );
- RgnHandle hiliteRgn = NewRgn();
- Rect r = { y, x, y + win->GetSize().y, x + win->GetSize().x };
- RectRgn( hiliteRgn, &r );
+ if ( trackingGlobals->m_currentTarget )
+ {
+ trackingGlobals->m_currentTarget->SetCurrentDragPasteboard( pasteboard );
+ result = trackingGlobals->m_currentTarget->OnEnter( localx, localy, result );
+ }
+
+ if ( result != wxDragNone )
+ {
+ int x, y;
+
+ x = y = 0;
+ win->MacWindowToRootWindow( &x, &y );
+ RgnHandle hiliteRgn = NewRgn();
+ Rect r = { y, x, y + win->GetSize().y, x + win->GetSize().x };
+ RectRgn( hiliteRgn, &r );