提交 f7623716 编写于 作者: D dcherepanov

6854898: Frame is located at the negative coordinates instead of origin for Solaris 10 CDE

Reviewed-by: art, anthony
上级 27f090a5
...@@ -71,8 +71,8 @@ public abstract class XErrorHandler { ...@@ -71,8 +71,8 @@ public abstract class XErrorHandler {
return super.handleError(display, err); return super.handleError(display, err);
} }
// Shared instance // Shared instance
private static IgnoreBadWindowHandler theInstance = new IgnoreBadWindowHandler(); private static VerifyChangePropertyHandler theInstance = new VerifyChangePropertyHandler();
public static IgnoreBadWindowHandler getInstance() { public static VerifyChangePropertyHandler getInstance() {
return theInstance; return theInstance;
} }
} }
......
...@@ -166,6 +166,9 @@ public final class XToolkit extends UNIXToolkit implements Runnable { ...@@ -166,6 +166,9 @@ public final class XToolkit extends UNIXToolkit implements Runnable {
} }
public static void RESTORE_XERROR_HANDLER() { public static void RESTORE_XERROR_HANDLER() {
// wait until all requests are processed by the X server
// and only then uninstall the error handler
XSync();
current_error_handler = null; current_error_handler = null;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册