提交 e013a78c 编写于 作者: P pchelko

7158311: GraphicsDevice.setDisplayMode(...) leads to hang when DISPLAY...

7158311: GraphicsDevice.setDisplayMode(...) leads to hang when DISPLAY variable points to Oracle Linux
8001463: Regression : Deadlock between AWT-XAWT thread and AWT-EventQueue-0 Thread when screen resolution changes
Reviewed-by: art, serb
Contributed-by: alexander.zvegintsev@oracle.com
上级 7fa5b214
...@@ -240,9 +240,14 @@ public final class XToolkit extends UNIXToolkit implements Runnable { ...@@ -240,9 +240,14 @@ public final class XToolkit extends UNIXToolkit implements Runnable {
@Override @Override
public void dispatchEvent(XEvent ev) { public void dispatchEvent(XEvent ev) {
if (ev.get_type() == XConstants.ConfigureNotify) { if (ev.get_type() == XConstants.ConfigureNotify) {
awtUnlock();
try {
((X11GraphicsEnvironment)GraphicsEnvironment. ((X11GraphicsEnvironment)GraphicsEnvironment.
getLocalGraphicsEnvironment()). getLocalGraphicsEnvironment()).
displayChanged(); displayChanged();
} finally {
awtLock();
}
} }
} }
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册