From 46f24bf08f6cc12aa8945ae0257c810a59a8803c Mon Sep 17 00:00:00 2001 From: Po Lu Date: Thu, 13 Jan 2022 10:10:41 +0800 Subject: [PATCH] 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) --- src/gtkutil.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gtkutil.c b/src/gtkutil.c index 1db166b1bad..7f635f8fe2b 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c @@ -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; } -- 2.39.2