--- old/src/macosx/classes/sun/lwawt/LWWindowPeer.java 2012-03-31 23:06:10.387605300 +0400 +++ new/src/macosx/classes/sun/lwawt/LWWindowPeer.java 2012-03-31 23:06:10.132590800 +0400 @@ -784,9 +784,8 @@ } mouseClickButtons &= ~eventButtonMask; } - - notifyUpdateCursor(); } + notifyUpdateCursor(); } public void dispatchMouseWheelEvent(long when, int x, int y, int modifiers, @@ -1057,6 +1056,10 @@ return lastMouseEventPeer != null ? lastMouseEventPeer.getWindowPeerOrSelf() : null; } + public static LWComponentPeer getPeerUnderCursor() { + return lastMouseEventPeer; + } + public boolean requestWindowFocus(CausedFocusEvent.Cause cause) { if (focusLog.isLoggable(PlatformLogger.FINE)) { focusLog.fine("requesting native focus to " + this);