changeset 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 b741b3129c1b
children 61249a8fe735
files src/xterm.c
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
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,