From: Po Lu Date: Mon, 17 Jan 2022 00:29:39 +0000 (+0800) Subject: Exercise wire right after event is filtered for native input X-Git-Tag: emacs-29.0.90~3006 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e25db1e167c7322497a1e33590177d57571188c8;p=emacs.git Exercise wire right after event is filtered for native input * src/xterm.c (handle_one_xevent): Run a no-op immediately after an event was filtered by GDK. --- diff --git a/src/xterm.c b/src/xterm.c index 3328e659301..9bf4404c9cf 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -8385,6 +8385,11 @@ x_filter_event (struct x_display_info *dpyinfo, XEvent *event) result = xg_filter_key (f1, event); unblock_input (); + if (result && f1) + /* There will probably be a GDK event generated soon, so + exercise the wire to make pselect return. */ + XNoOp (FRAME_X_DISPLAY (f1)); + return result; }