Print this page
*** NO COMMENTS ***

Split Close
Expand all
Collapse all
          --- old/src/java.desktop/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java
          +++ new/src/java.desktop/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java
↓ open down ↓ 480 lines elided ↑ open up ↑
 481  481  
 482  482      private void maximize() {
 483  483          if (peer == null || isMaximized()) {
 484  484              return;
 485  485          }
 486  486          if (!undecorated) {
 487  487              CWrapper.NSWindow.zoom(getNSWindowPtr());
 488  488          } else {
 489  489              deliverZoom(true);
 490  490  
      491 +            // We need an up to date size of the peer, so we flush the native events 
      492 +            // to be sure that there are no setBounds requests in the queue.
      493 +            LWCToolkit.flushNativeSelectors();
 491  494              this.normalBounds = peer.getBounds();
 492  495  
 493  496              GraphicsConfiguration config = getPeer().getGraphicsConfiguration();
 494  497              Insets i = ((CGraphicsDevice)config.getDevice()).getScreenInsets();
 495  498              Rectangle toBounds = config.getBounds();
 496  499              setBounds(toBounds.x + i.left,
 497  500                        toBounds.y + i.top,
 498  501                        toBounds.width - i.left - i.right,
 499  502                        toBounds.height - i.top - i.bottom);
 500  503          }
↓ open down ↓ 601 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX