diff src/xterm.c @ 15973:6ad9e8fee494

(XTread_socket): Call XFilterEvent on all events, if HAVE_X_I18N and FRAME_XIC nonzero.
author Richard M. Stallman <rms@gnu.org>
date Thu, 29 Aug 1996 06:22:28 +0000
parents 2882af484d9c
children 1185f8fc0bfb
line wrap: on
line diff
--- a/src/xterm.c	Thu Aug 29 06:20:21 1996 +0000
+++ b/src/xterm.c	Thu Aug 29 06:22:28 1996 +0000
@@ -3324,6 +3324,12 @@
 #else
 	  XNextEvent (dpyinfo->display, &event);
 #endif
+#ifdef HAVE_X_I18N
+	  /* The necessity of the following line took me
+	     a full work-day to decipher from the docs!!  */
+	  if (FRAME_XIC (f) && XFilterEvent (&event, None))
+	    break;
+#endif
 	  event_found = 1;
 
 	  switch (event.type)
@@ -3667,10 +3673,6 @@
 #ifdef HAVE_X_I18N
 		  if (FRAME_XIC (f))
 		    {
-		      /* The necessity of the following line took me
-			 a full work-day to decipher from the docs!!  */
-		      if (XFilterEvent (&event, None))
-			break;
 		      nbytes = XmbLookupString (FRAME_XIC (f),
 						&event.xkey, copy_buffer,
 						80, &keysym,