From: Po Lu Date: Thu, 25 Nov 2021 05:20:56 +0000 (+0800) Subject: Set serial when filtering XI_KeyPress events X-Git-Tag: emacs-29.0.90~2852^2~46 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b469a0155140cf0c319963717cb43f2bf43864ec;p=emacs.git Set serial when filtering XI_KeyPress events This fixes fcitx flicker for whatever reason. * src/xterm.c (handle_one_xevent): Set serial when filtering XI_KeyPress events. --- diff --git a/src/xterm.c b/src/xterm.c index 346cd0c38a4..0a3aeeed703 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -10648,7 +10648,7 @@ handle_one_xevent (struct x_display_info *dpyinfo, memset (&xkey, 0, sizeof xkey); xkey.type = KeyRelease; - xkey.serial = 0; + xkey.serial = xev->serial; xkey.send_event = xev->send_event; xkey.display = xev->display; xkey.window = xev->event;