mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 12:04:39 +02:00
7192887: java/awt/Window/Grab/GrabTest.java still failed (fix failed for CR 7149068)
Reviewed-by: ant, serb
This commit is contained in:
parent
18e3872928
commit
ac4a9defca
1 changed files with 11 additions and 0 deletions
|
@ -1165,15 +1165,25 @@ class XWindowPeer extends XPanelPeer implements WindowPeer,
|
||||||
}
|
}
|
||||||
|
|
||||||
public void dispose() {
|
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();
|
SunToolkit.awtLock();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
windows.remove(this);
|
windows.remove(this);
|
||||||
} finally {
|
} finally {
|
||||||
SunToolkit.awtUnlock();
|
SunToolkit.awtUnlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (warningWindow != null) {
|
if (warningWindow != null) {
|
||||||
warningWindow.destroy();
|
warningWindow.destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
removeRootPropertyEventDispatcher();
|
removeRootPropertyEventDispatcher();
|
||||||
mustControlStackPosition = false;
|
mustControlStackPosition = false;
|
||||||
super.dispose();
|
super.dispose();
|
||||||
|
@ -1191,6 +1201,7 @@ class XWindowPeer extends XPanelPeer implements WindowPeer,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean isResizable() {
|
boolean isResizable() {
|
||||||
return winAttr.isResizable;
|
return winAttr.isResizable;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue