From d2ba793ed97c7e759630109033cf729fee14446b Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sat, 19 Mar 2022 10:52:27 +0800 Subject: [PATCH] * src/xterm.c (XTread_socket): Don't filter GenericEvents. --- src/xterm.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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; -- 2.39.2