src/macosx/classes/sun/lwawt/LWCursorManager.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 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 { /**
*** 107,117 **** 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; } c = c.getParent(); } } --- 108,119 ---- final Point p = peer.getLocationOnScreen(); c = ((Container) c).findComponentAt(cursorPos.x - p.x, cursorPos.y - p.y); } while (c != null) { ! final Object p = AWTAccessor.getComponentAccessor().getPeer(c); ! if (c.isVisible() && c.isEnabled() && p != null) { break; } c = c.getParent(); } }