]> git.eshelyaron.com Git - emacs.git/commitdiff
Set serial when filtering XI_KeyPress events
authorPo Lu <luangruo@yahoo.com>
Thu, 25 Nov 2021 05:20:56 +0000 (13:20 +0800)
committerPo Lu <luangruo@yahoo.com>
Thu, 25 Nov 2021 05:20:56 +0000 (13:20 +0800)
This fixes fcitx flicker for whatever reason.

* src/xterm.c (handle_one_xevent): Set serial when filtering
XI_KeyPress events.

src/xterm.c

index 346cd0c38a4df26c2223c3074f5a1a5d7052d005..0a3aeeed7035e51bc1919acc0471eaba03e22657 100644 (file)
@@ -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;