From c1106b2ee7e91c2a7eb7caa91c792008ab31ed87 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sat, 8 Jan 2022 21:28:11 +0800 Subject: [PATCH] Make sure native keypresses are received immediately on GTK * src/gtkutil.c (xg_widget_key_press_event_cb): Send input available signal. --- src/gtkutil.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gtkutil.c b/src/gtkutil.c index aaa2933f86e..ff5c0f27510 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c @@ -6250,6 +6250,8 @@ xg_widget_key_press_event_cb (GtkWidget *widget, GdkEvent *event, xg_pending_quit_event.kind = NO_EVENT; kbd_buffer_store_buffered_event (&inev, &xg_pending_quit_event); } + + raise (SIGIO); return true; } -- 2.39.2