--- old/src/macosx/classes/sun/lwawt/LWLightweightFramePeer.java 2013-09-04 12:42:09.570736200 +0400 +++ new/src/macosx/classes/sun/lwawt/LWLightweightFramePeer.java 2013-09-04 12:42:09.383535900 +0400 @@ -25,6 +25,10 @@ package sun.lwawt; +import sun.awt.CausedFocusEvent; +import sun.awt.LightweightFrame; +import sun.awt.LightweightFramePeer; + import java.awt.Graphics; import java.awt.Insets; import java.awt.Point; @@ -32,10 +36,8 @@ import java.awt.Window; import java.awt.dnd.DropTarget; -import sun.awt.CausedFocusEvent; -import sun.awt.LightweightFrame; -public class LWLightweightFramePeer extends LWWindowPeer { +public class LWLightweightFramePeer extends LWWindowPeer implements LightweightFramePeer { public LWLightweightFramePeer(LightweightFrame target, PlatformComponent platformComponent, @@ -91,11 +93,6 @@ } @Override - public void updateCursorImmediately() { - // TODO: tries to switch to the awt/fx toolkit thread and causes a deadlock on macosx - } - - @Override public void addDropTarget(DropTarget dt) { } @@ -112,4 +109,14 @@ public void ungrab() { getLwTarget().ungrabFocus(); } + + @Override + public void setLightweightFrameUnderMouse() { + setLastCommonMouseEventPeer(this); + } + + @Override + public boolean cleanLightweightFrameUnderMouse() { + return cleanLastCommonMouseEventPeer(this); + } }