[9681] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] gdk_im_begin() bug & patch

daemon@ATHENA.MIT.EDU (Changwoo Ryu)
Fri Oct 30 14:00:35 1998

To: gtk-list@redhat.com
From: Changwoo Ryu <cwryu@adam.kaist.ac.kr>
Date: 31 Oct 1998 03:56:32 +0900
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

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;
+	}
     }
 }
 

-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post