From 531483fbd3a89e58858b733bad5b467511e1b0a7 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 29 Aug 1996 06:22:28 +0000 Subject: [PATCH] (XTread_socket): Call XFilterEvent on all events, if HAVE_X_I18N and FRAME_XIC nonzero. --- src/xterm.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/xterm.c b/src/xterm.c index e98a2c5b0f5..d264c0a322c 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -3324,6 +3324,12 @@ XTread_socket (sd, bufp, numchars, waitp, expected) #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 @@ XTread_socket (sd, bufp, numchars, waitp, expected) #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, -- 2.11.4.GIT