--- a/jdk/src/macosx/classes/com/apple/eawt/FullScreenHandler.java Thu Jul 11 16:42:13 2013 +0400
+++ b/jdk/src/macosx/classes/com/apple/eawt/FullScreenHandler.java Thu Jul 11 18:23:15 2013 +0400
@@ -32,6 +32,7 @@
import javax.swing.RootPaneContainer;
import com.apple.eawt.AppEvent.FullScreenEvent;
+import sun.awt.SunToolkit;
import java.lang.annotation.Native;
@@ -75,7 +76,7 @@
static void handleFullScreenEventFromNative(final Window window, final int type) {
if (!(window instanceof RootPaneContainer)) return; // handles null
- EventQueue.invokeLater(new Runnable() {
+ SunToolkit.executeOnEventHandlerThread(window, new Runnable() {
public void run() {
final FullScreenHandler handler = getHandlerFor((RootPaneContainer)window);
if (handler != null) handler.notifyListener(new FullScreenEvent(window), type);