jdk/src/macosx/classes/sun/lwawt/LWWindowPeer.java
changeset 12396 79c64c6eb61e
parent 12176 fc690f855620
child 12535 6d2ee83614e8
--- a/jdk/src/macosx/classes/sun/lwawt/LWWindowPeer.java	Wed Apr 04 20:32:39 2012 +0400
+++ b/jdk/src/macosx/classes/sun/lwawt/LWWindowPeer.java	Thu Apr 05 18:27:16 2012 +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);