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

Print this page

        

*** 25,37 **** package sun.lwawt.macosx; import sun.awt.datatransfer.ToolkitThreadBlockedHandler; - // TODO:BG this class is really a NOOP right now, but should be filled in if needed. - final class CToolkitThreadBlockedHandler implements ToolkitThreadBlockedHandler { public void lock() { } public void unlock() { } --- 25,37 ---- package sun.lwawt.macosx; import sun.awt.datatransfer.ToolkitThreadBlockedHandler; final class CToolkitThreadBlockedHandler implements ToolkitThreadBlockedHandler { + private final LWCToolkit toolkit = (LWCToolkit)java.awt.Toolkit.getDefaultToolkit(); + public void lock() { } public void unlock() { }
*** 39,49 **** protected boolean isOwned() { return false; } public void enter() { } public void exit() { } - } --- 39,50 ---- protected boolean isOwned() { return false; } public void enter() { + toolkit.startNativeNestedEventLoop(); } public void exit() { + toolkit.stopNativeNestedEventLoop(); } }