aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1996-08-29 06:22:28 +0000
committerRichard M. Stallman1996-08-29 06:22:28 +0000
commit531483fbd3a89e58858b733bad5b467511e1b0a7 (patch)
tree4d71ce2d84dba013290cccc4e3737ba3769369c1 /src
parent10809e0f111386830566b03718b4e01a209f3ac3 (diff)
downloademacs-531483fbd3a89e58858b733bad5b467511e1b0a7.tar.gz
emacs-531483fbd3a89e58858b733bad5b467511e1b0a7.zip
(XTread_socket): Call XFilterEvent on all events,
if HAVE_X_I18N and FRAME_XIC nonzero.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c10
1 files 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)
3324#else 3324#else
3325 XNextEvent (dpyinfo->display, &event); 3325 XNextEvent (dpyinfo->display, &event);
3326#endif 3326#endif
3327#ifdef HAVE_X_I18N
3328 /* The necessity of the following line took me
3329 a full work-day to decipher from the docs!! */
3330 if (FRAME_XIC (f) && XFilterEvent (&event, None))
3331 break;
3332#endif
3327 event_found = 1; 3333 event_found = 1;
3328 3334
3329 switch (event.type) 3335 switch (event.type)
@@ -3667,10 +3673,6 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
3667#ifdef HAVE_X_I18N 3673#ifdef HAVE_X_I18N
3668 if (FRAME_XIC (f)) 3674 if (FRAME_XIC (f))
3669 { 3675 {
3670 /* The necessity of the following line took me
3671 a full work-day to decipher from the docs!! */
3672 if (XFilterEvent (&event, None))
3673 break;
3674 nbytes = XmbLookupString (FRAME_XIC (f), 3676 nbytes = XmbLookupString (FRAME_XIC (f),
3675 &event.xkey, copy_buffer, 3677 &event.xkey, copy_buffer,
3676 80, &keysym, 3678 80, &keysym,