From b40f815a56cdfe6a61b069815016c26cef78608f Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Thu, 4 Jul 1996 05:46:05 +0000 Subject: [PATCH] (XTread_socket): Use lw_tookit_related_event_p to avoid sending toolkit-specific events to Emacs. --- src/xterm.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/xterm.c b/src/xterm.c index 49dd9fe164b..27e99ca3726 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -3651,6 +3651,13 @@ XTread_socket (sd, bufp, numchars, waitp, expected) 80, &keysym, &compose_status); #endif +#ifdef USE_X_TOOLKIT + if (lw_toolkit_related_event_p (&event)) + { + XtDispatchEvent (&event); + break; + } +#endif orig_keysym = keysym; if (numchars > 1) -- 2.39.2