]> git.eshelyaron.com Git - emacs.git/commitdiff
Filter key release events when using native input without having XIM
authorPo Lu <luangruo@yahoo.com>
Sat, 15 Jan 2022 05:25:23 +0000 (13:25 +0800)
committerPo Lu <luangruo@yahoo.com>
Sat, 15 Jan 2022 05:25:23 +0000 (13:25 +0800)
* src/xterm.c (handle_one_xevent): Also check for XI key
release events when using native input on a build without XIM.

src/xterm.c

index 0e93c992751d1aab8e135d8ab435aa7819e3840d..5798ea3eebc9618f2c9e3362d106e29387b10ca4 100644 (file)
@@ -8435,8 +8435,10 @@ event_handler_gdk (GdkXEvent *gxev, GdkEvent *ev, gpointer data)
                  && xev->type == GenericEvent
                  && (xev->xgeneric.extension
                      == dpyinfo->xi2_opcode)
-                 && (xev->xgeneric.evtype
-                     == XI_KeyPress))
+                 && ((xev->xgeneric.evtype
+                      == XI_KeyPress)
+                     || (xev->xgeneric.evtype
+                         == XI_KeyRelease)))
 #endif
              ))
        {