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

Print this page

        

*** 30,39 **** --- 30,40 ---- import java.awt.event.*; import java.awt.peer.WindowPeer; import java.beans.*; import java.lang.reflect.InvocationTargetException; import java.util.List; + import java.util.Objects; import javax.swing.*; import sun.awt.*; import sun.java2d.SurfaceData;
*** 914,926 **** return; } final Rectangle oldB = nativeBounds; nativeBounds = new Rectangle(x, y, width, height); peer.notifyReshape(x, y, width, height); if ((byUser && !oldB.getSize().equals(nativeBounds.getSize())) ! || isFullScreenAnimationOn) { flushBuffers(); } } private void deliverWindowClosingEvent() { --- 915,930 ---- return; } final Rectangle oldB = nativeBounds; nativeBounds = new Rectangle(x, y, width, height); + final GraphicsConfiguration oldGC = peer.getGraphicsConfiguration(); peer.notifyReshape(x, y, width, height); + final GraphicsConfiguration newGC = peer.getGraphicsConfiguration(); + // System-dependent appearance optimization. if ((byUser && !oldB.getSize().equals(nativeBounds.getSize())) ! || isFullScreenAnimationOn || !Objects.equals(newGC, oldGC)) { flushBuffers(); } } private void deliverWindowClosingEvent() {