提交 c3f1e6c4 编写于 作者: L langel

6721086: Toolkit beep does not work consistently

Summary: Flush out after bell is sounded
Reviewed-by: anthony
上级 54e0c63e
...@@ -1177,6 +1177,7 @@ public final class XToolkit extends UNIXToolkit implements Runnable { ...@@ -1177,6 +1177,7 @@ public final class XToolkit extends UNIXToolkit implements Runnable {
awtLock(); awtLock();
try { try {
XlibWrapper.XBell(getDisplay(), 0); XlibWrapper.XBell(getDisplay(), 0);
XlibWrapper.XFlush(getDisplay());
} finally { } finally {
awtUnlock(); awtUnlock();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册