Skip to content
Snippets Groups Projects
Commit ac4a9def authored by Denis Fokin's avatar Denis Fokin
Browse files

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

Reviewed-by: ant, serb
parent 18e38729
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment