6854898: Frame is located at the negative coordinates instead of origin for Solaris 10 CDE
authordcherepanov
Thu, 27 Aug 2009 17:06:23 +0400
changeset 3728 d4b5b18ac3eb
parent 3727 43b25dfd1129
child 3729 80d0cf73598d
6854898: Frame is located at the negative coordinates instead of origin for Solaris 10 CDE Reviewed-by: art, anthony
jdk/src/solaris/classes/sun/awt/X11/XErrorHandler.java
jdk/src/solaris/classes/sun/awt/X11/XToolkit.java
--- a/jdk/src/solaris/classes/sun/awt/X11/XErrorHandler.java	Thu Aug 27 17:04:47 2009 +0400
+++ b/jdk/src/solaris/classes/sun/awt/X11/XErrorHandler.java	Thu Aug 27 17:06:23 2009 +0400
@@ -71,8 +71,8 @@
             return super.handleError(display, err);
         }
         // Shared instance
-        private static IgnoreBadWindowHandler theInstance = new IgnoreBadWindowHandler();
-        public static IgnoreBadWindowHandler getInstance() {
+        private static VerifyChangePropertyHandler theInstance = new VerifyChangePropertyHandler();
+        public static VerifyChangePropertyHandler getInstance() {
             return theInstance;
         }
     }
--- a/jdk/src/solaris/classes/sun/awt/X11/XToolkit.java	Thu Aug 27 17:04:47 2009 +0400
+++ b/jdk/src/solaris/classes/sun/awt/X11/XToolkit.java	Thu Aug 27 17:06:23 2009 +0400
@@ -166,6 +166,9 @@
     }
 
     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;
     }