[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master d2ba793ed9: * src/xterm.c (XTread_socket): Don't filter GenericEv
From: |
Po Lu |
Subject: |
master d2ba793ed9: * src/xterm.c (XTread_socket): Don't filter GenericEvents. |
Date: |
Fri, 18 Mar 2022 22:52:55 -0400 (EDT) |
branch: master
commit d2ba793ed97c7e759630109033cf729fee14446b
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
* 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 5c5f24e297..b820c102f1 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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master d2ba793ed9: * src/xterm.c (XTread_socket): Don't filter GenericEvents.,
Po Lu <=