gdk_im_begin() bug & patch



Assign private's value to xim_ic, and compare private and xim_ic?

I think it is just a coding mistake.  Hmm...  Does kinput2 work
without XSetICFocus() ?


--- gdk.c.orig	Sat Oct 31 03:48:55 1998
+++ gdk.c	Sat Oct 31 03:48:42 1998
@@ -3104,7 +3104,6 @@
   private = (GdkICPrivate *) ic;
   
   xim_using = TRUE;
-  xim_ic = private;
   xim_window = window;
   if (gdk_im_ready())
     {
@@ -3113,7 +3112,10 @@
 	XSetICValues (private->xic, XNFocusWindow, 
 		      GDK_WINDOW_XWINDOW(window), NULL);
       if (private != xim_ic)
-	XSetICFocus (private->xic);
+	{
+	  XSetICFocus (private->xic);
+	  xim_ic = private;
+	}
     }
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]