summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2022-01-13 10:10:41 +0800
committerPo Lu <luangruo@yahoo.com>2022-01-13 10:12:39 +0800
commit46f24bf08f6cc12aa8945ae0257c810a59a8803c (patch)
tree749326fb344252571bcdc49d6447edfc4e4e16cd
parent931b6ac973941f564c2c32ac810dd3522558eae1 (diff)
downloademacs-46f24bf08f6cc12aa8945ae0257c810a59a8803c.tar.gz
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)
-rw-r--r--src/gtkutil.c4
1 files changed, 1 insertions, 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;
}