src/macosx/classes/sun/lwawt/LWCursorManager.java
Print this page
*** 30,39 ****
--- 30,40 ----
import java.awt.Cursor;
import java.awt.Point;
import java.util.concurrent.atomic.AtomicBoolean;
+ import sun.awt.AWTAccessor;
import sun.awt.SunToolkit;
public abstract class LWCursorManager {
/**
*** 103,114 ****
Component c = null;
if (peer != null && peer.getWindowPeerOrSelf().getBlocker() == null) {
c = peer.getTarget();
if (c instanceof Container) {
final Point p = peer.getLocationOnScreen();
! c = ((Container) c).findComponentAt(cursorPos.x - p.x,
! cursorPos.y - p.y);
}
while (c != null) {
if (c.isVisible() && c.isEnabled() && (c.getPeer() != null)) {
break;
}
--- 104,116 ----
Component c = null;
if (peer != null && peer.getWindowPeerOrSelf().getBlocker() == null) {
c = peer.getTarget();
if (c instanceof Container) {
final Point p = peer.getLocationOnScreen();
! c = AWTAccessor.getContainerAccessor().findComponentAt(
! (Container) c, cursorPos.x - p.x, cursorPos.y - p.y, false);
!
}
while (c != null) {
if (c.isVisible() && c.isEnabled() && (c.getPeer() != null)) {
break;
}