jdk/src/solaris/native/sun/awt/awt_InputMethod.c
changeset 2802 d05a9dcc8296
parent 2 90ce3da70b43
child 5506 202f599c92aa
--- a/jdk/src/solaris/native/sun/awt/awt_InputMethod.c	Wed May 06 20:06:23 2009 +0400
+++ b/jdk/src/solaris/native/sun/awt/awt_InputMethod.c	Fri May 15 15:40:35 2009 +0400
@@ -1458,7 +1458,6 @@
 }
 
 static void OpenXIMCallback(Display *display, XPointer client_data, XPointer call_data) {
-    extern int xerror_handler();
     XIMCallback ximCallback;
 
     X11im = XOpenIM(display, NULL, NULL, NULL);
@@ -1469,13 +1468,6 @@
     ximCallback.callback = (XIMProc)DestroyXIMCallback;
     ximCallback.client_data = NULL;
     XSetIMValues(X11im, XNDestroyCallback, &ximCallback, NULL);
-
-    /* Workaround for Solaris 2.6 bug 4097754. We're affected by this problem
-     * because Motif also calls XOpenIM for us. Re-registering the error handler
-     * that MToolkit has registered already after calling XOpenIM avoids the
-     * problem.
-     */
-    XSetErrorHandler(xerror_handler);
 }
 
 static void DestroyXIMCallback(XIM im, XPointer client_data, XPointer call_data) {