Fix GTK native input methods randomly freezing input

* src/gtkutil.c (xg_widget_key_press_event_cb): Exercise the X11
connection causing pselect to return immediately from input.
(bug#53160)
This commit is contained in:
Po Lu 2022-01-13 10:10:41 +08:00
parent 931b6ac973
commit 46f24bf08f

View 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;
}