jdk/src/java.desktop/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java
changeset 29519 53b8aa64c82d
parent 28235 0dfebfcb9f8a
child 30469 bac0a7ff7e1e
--- a/jdk/src/java.desktop/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java	Tue Mar 10 15:39:26 2015 +0300
+++ b/jdk/src/java.desktop/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java	Tue Mar 10 21:48:37 2015 +0300
@@ -488,6 +488,9 @@
         } else {
             deliverZoom(true);
 
+            // We need an up to date size of the peer, so we flush the native events
+            // to be sure that there are no setBounds requests in the queue.
+            LWCToolkit.flushNativeSelectors();
             this.normalBounds = peer.getBounds();
 
             GraphicsConfiguration config = getPeer().getGraphicsConfiguration();