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

Print this page

        

*** 703,718 **** if (getWindow() == 0) { insLog.warning("Attempt to resize uncreated window"); throw new IllegalStateException("Attempt to resize uncreated window"); } insLog.fine("Setting bounds on " + this + " to (" + x + ", " + y + "), " + width + "x" + height); ! if (width <= 0) { ! width = 1; ! } ! if (height <= 0) { ! height = 1; ! } XToolkit.awtLock(); try { XlibWrapper.XMoveResizeWindow(XToolkit.getDisplay(), getWindow(), x,y,width,height); } finally { XToolkit.awtUnlock(); --- 703,714 ---- if (getWindow() == 0) { insLog.warning("Attempt to resize uncreated window"); throw new IllegalStateException("Attempt to resize uncreated window"); } insLog.fine("Setting bounds on " + this + " to (" + x + ", " + y + "), " + width + "x" + height); ! width = Math.max(MIN_SIZE, width); ! height = Math.max(MIN_SIZE, height); XToolkit.awtLock(); try { XlibWrapper.XMoveResizeWindow(XToolkit.getDisplay(), getWindow(), x,y,width,height); } finally { XToolkit.awtUnlock();