]> git.eshelyaron.com Git - emacs.git/commitdiff
Exercise wire right after event is filtered for native input
authorPo Lu <luangruo@yahoo.com>
Mon, 17 Jan 2022 00:29:39 +0000 (08:29 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 17 Jan 2022 00:30:38 +0000 (08:30 +0800)
* src/xterm.c (handle_one_xevent): Run a no-op immediately after
an event was filtered by GDK.

src/xterm.c

index 3328e659301b4b19b466383f262952ee05e95473..9bf4404c9cf5e2f78483c99e6dfe5e37ef23813a 100644 (file)
@@ -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;
     }