提交 c7cdd661 编写于 作者: L lana

Merge

...@@ -1068,7 +1068,7 @@ public class Dialog extends Window { ...@@ -1068,7 +1068,7 @@ public class Dialog extends Window {
modalityPushed(); modalityPushed();
try { try {
EventQueue eventQueue = Toolkit.getDefaultToolkit().getSystemEventQueue(); EventQueue eventQueue = Toolkit.getDefaultToolkit().getSystemEventQueue();
secondaryLoop = eventQueue.createSecondaryLoop(cond, modalFilter, 5000); secondaryLoop = eventQueue.createSecondaryLoop(cond, modalFilter, 0);
if (!secondaryLoop.enter()) { if (!secondaryLoop.enter()) {
secondaryLoop = null; secondaryLoop = null;
} }
......
...@@ -705,12 +705,8 @@ public class XBaseWindow { ...@@ -705,12 +705,8 @@ public class XBaseWindow {
throw new IllegalStateException("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); insLog.fine("Setting bounds on " + this + " to (" + x + ", " + y + "), " + width + "x" + height);
if (width <= 0) { width = Math.max(MIN_SIZE, width);
width = 1; height = Math.max(MIN_SIZE, height);
}
if (height <= 0) {
height = 1;
}
XToolkit.awtLock(); XToolkit.awtLock();
try { try {
XlibWrapper.XMoveResizeWindow(XToolkit.getDisplay(), getWindow(), x,y,width,height); XlibWrapper.XMoveResizeWindow(XToolkit.getDisplay(), getWindow(), x,y,width,height);
......
...@@ -763,12 +763,8 @@ abstract class XDecoratedPeer extends XWindowPeer { ...@@ -763,12 +763,8 @@ abstract class XDecoratedPeer extends XWindowPeer {
} }
private void checkShellRectSize(Rectangle shellRect) { private void checkShellRectSize(Rectangle shellRect) {
if (shellRect.width < 0) { shellRect.width = Math.max(MIN_SIZE, shellRect.width);
shellRect.width = 1; shellRect.height = Math.max(MIN_SIZE, shellRect.height);
}
if (shellRect.height < 0) {
shellRect.height = 1;
}
} }
private void checkShellRectPos(Rectangle shellRect) { private void checkShellRectPos(Rectangle shellRect) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册