jdk/src/macosx/classes/com/apple/eawt/FullScreenHandler.java
changeset 18760 438afe2fc852
parent 16734 da1901d79073
--- 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);