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

Reviewed-by: ant, serb
This commit is contained in:
Denis Fokin 2012-08-30 01:17:24 +04:00
parent 18e3872928
commit ac4a9defca

@ -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;
}