From 9d809ed9bb778327b09c1ac10b1166df70ebd682 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sat, 15 Jan 2022 13:25:23 +0800 Subject: [PATCH] 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. --- src/xterm.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 )) { -- 2.39.2