--- old/src/solaris/classes/sun/awt/X11/XContentWindow.java 2009-08-11 19:21:16.000000000 +0400 +++ new/src/solaris/classes/sun/awt/X11/XContentWindow.java 2009-08-11 19:21:16.000000000 +0400 @@ -105,8 +105,12 @@ } } - // Coordinates are that of the shell - void setContentBounds(WindowDimensions dims) { + /** + * Sets content window bounds. + * + * @return whether a COMPONENT_RESIZED event has been sent + */ + boolean setContentBounds(WindowDimensions dims) { XToolkit.awtLock(); try { // Bounds of content window are of the same size as bounds of Java window and with @@ -127,10 +131,11 @@ insLog.fine("Sending RESIZED"); handleResize(newBounds); } + validateSurface(); + return needHandleResize; } finally { XToolkit.awtUnlock(); } - validateSurface(); } // NOTE: This method may be called by privileged threads.