]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix GTK native input methods randomly freezing input
authorPo Lu <luangruo@yahoo.com>
Thu, 13 Jan 2022 02:10:41 +0000 (10:10 +0800)
committerPo Lu <luangruo@yahoo.com>
Thu, 13 Jan 2022 02:12:39 +0000 (10:12 +0800)
* src/gtkutil.c (xg_widget_key_press_event_cb): Exercise the X11
connection causing pselect to return immediately from input.
(bug#53160)

src/gtkutil.c

index 1db166b1bad38cad3bae02710f436b0fdb27514e..7f635f8fe2b7e0c08c4f9a26fe81a8e18b059512 100644 (file)
@@ -6255,9 +6255,7 @@ xg_widget_key_press_event_cb (GtkWidget *widget, GdkEvent *event,
       kbd_buffer_store_buffered_event (&inev, &xg_pending_quit_event);
     }
 
-#ifdef USABLE_SIGIO
-  raise (SIGIO);
-#endif
+  XNoOp (FRAME_X_DISPLAY (f));
   return true;
 }