From: Po Lu Date: Sat, 19 Mar 2022 02:52:27 +0000 (+0800) Subject: * src/xterm.c (XTread_socket): Don't filter GenericEvents. X-Git-Tag: emacs-29.0.90~1931^2~1044 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d2ba793ed97c7e759630109033cf729fee14446b;p=emacs.git * src/xterm.c (XTread_socket): Don't filter GenericEvents. --- diff --git a/src/xterm.c b/src/xterm.c index 5c5f24e297d..b820c102f1b 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -14510,8 +14510,17 @@ XTread_socket (struct terminal *terminal, struct input_event *hold_quit) #ifdef HAVE_X_I18N /* Filter events for the current X input method. */ - if (x_filter_event (dpyinfo, &event)) - continue; +#ifdef HAVE_XINPUT2 + if (event.type != GenericEvent) + { + /* Input extension key events are filtered inside + handle_one_xevent. */ +#endif + if (x_filter_event (dpyinfo, &event)) + continue; +#ifdef HAVE_XINPUT2 + } +#endif #endif event_found = true;