提交 01ce822a 编写于 作者: D denis

7192887: java/awt/Window/Grab/GrabTest.java still failed (fix failed for CR 7149068)

Reviewed-by: ant, serb
上级 f1c800fa
......@@ -1165,15 +1165,25 @@ class XWindowPeer extends XPanelPeer implements WindowPeer,
}
public void dispose() {
if (isGrabbed()) {
if (grabLog.isLoggable(PlatformLogger.FINE)) {
grabLog.fine("Generating UngrabEvent on {0} because of the window disposal", this);
}
postEventToEventQueue(new sun.awt.UngrabEvent(getEventSource()));
}
SunToolkit.awtLock();
try {
windows.remove(this);
} finally {
SunToolkit.awtUnlock();
}
if (warningWindow != null) {
warningWindow.destroy();
}
removeRootPropertyEventDispatcher();
mustControlStackPosition = false;
super.dispose();
......@@ -1191,6 +1201,7 @@ class XWindowPeer extends XPanelPeer implements WindowPeer,
}
}
}
boolean isResizable() {
return winAttr.isResizable;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册