--- old/src/macosx/classes/sun/lwawt/macosx/CPlatformView.java 2012-10-23 16:29:00.402699600 +0400 +++ new/src/macosx/classes/sun/lwawt/macosx/CPlatformView.java 2012-10-23 16:29:00.199899300 +0400 @@ -26,7 +26,6 @@ package sun.lwawt.macosx; import java.awt.*; -import java.awt.event.*; import java.awt.image.VolatileImage; import sun.awt.CGraphicsConfig; @@ -202,12 +201,11 @@ event.getCharactersIgnoringModifiers(), event.getKeyCode(), true); } + /** + * Called by the native delegate in layer backed view mode or in the simple + * NSView mode. See NSView.drawRect(). + */ private void deliverWindowDidExposeEvent() { - Rectangle r = peer.getBounds(); - peer.notifyExpose(0, 0, r.width, r.height); - } - - private void deliverWindowDidExposeEvent(float x, float y, float w, float h) { - peer.notifyExpose((int)x, (int)y, (int)w, (int)h); + peer.notifyExpose(peer.getSize()); } }