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

Print this page

        

@@ -103,12 +103,16 @@
           default:
               return super.isEventDisabled(e) || parentFrame.isEventDisabled(e);
         }
     }
 
-    // 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
             // location as -(insets)
             Rectangle newBounds = dims.getBounds();

@@ -125,14 +129,15 @@
             reshape(newBounds);
             if (needHandleResize) {
                 insLog.fine("Sending RESIZED");
                 handleResize(newBounds);
             }
+            validateSurface();
+            return needHandleResize;
         } 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) {