From: Po Lu Date: Sat, 15 Jan 2022 05:25:23 +0000 (+0800) Subject: Filter key release events when using native input without having XIM X-Git-Tag: emacs-29.0.90~3043 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9d809ed9bb778327b09c1ac10b1166df70ebd682;p=emacs.git Filter key release events when using native input without having XIM * src/xterm.c (handle_one_xevent): Also check for XI key release events when using native input on a build without XIM. --- diff --git a/src/xterm.c b/src/xterm.c index 0e93c992751..5798ea3eebc 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -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 )) {