Commit 531483fb authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(XTread_socket): Call XFilterEvent on all events,

if HAVE_X_I18N and FRAME_XIC nonzero.
parent 10809e0f
......@@ -3323,6 +3323,12 @@ XTread_socket (sd, bufp, numchars, waitp, expected)
XtAppNextEvent (Xt_app_con, &event);
#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;
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment