src/solaris/classes/sun/awt/X11/XContentWindow.java

Print this page

        

*** 103,114 **** default: return super.isEventDisabled(e) || parentFrame.isEventDisabled(e); } } ! // Coordinates are that of the shell ! void setContentBounds(WindowDimensions dims) { XToolkit.awtLock(); try { // Bounds of content window are of the same size as bounds of Java window and with // location as -(insets) Rectangle newBounds = dims.getBounds(); --- 103,118 ---- default: return super.isEventDisabled(e) || parentFrame.isEventDisabled(e); } } ! /** ! * 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 // location as -(insets) Rectangle newBounds = dims.getBounds();
*** 125,138 **** reshape(newBounds); if (needHandleResize) { insLog.fine("Sending RESIZED"); handleResize(newBounds); } } finally { XToolkit.awtUnlock(); } - validateSurface(); } // NOTE: This method may be called by privileged threads. // DO NOT INVOKE CLIENT CODE ON THIS THREAD! public void handleResize(Rectangle bounds) { --- 129,143 ---- reshape(newBounds); if (needHandleResize) { insLog.fine("Sending RESIZED"); handleResize(newBounds); } + validateSurface(); + return needHandleResize; } finally { XToolkit.awtUnlock(); } } // NOTE: This method may be called by privileged threads. // DO NOT INVOKE CLIENT CODE ON THIS THREAD! public void handleResize(Rectangle bounds) {