]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/xterm.c (XTread_socket): Don't filter GenericEvents.
authorPo Lu <luangruo@yahoo.com>
Sat, 19 Mar 2022 02:52:27 +0000 (10:52 +0800)
committerPo Lu <luangruo@yahoo.com>
Sat, 19 Mar 2022 02:52:27 +0000 (10:52 +0800)
src/xterm.c

index 5c5f24e297d6207b5c00f80fbac2cb01392e63d4..b820c102f1b697d48c80f885e6dfb396d472a968 100644 (file)
@@ -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;