Subject: bug#65116: 29.1; query-replace-read-args fails reading second arg in detached minibuf

From: Po Lu <[email-masked]>
Date: Mon, 15 Jan 2024 11:38:24 +0800

Jim Rees <[email-masked]> writes:

> Po Lu wrote:
>
>   No, it should be compatible with 29.1.  Jim, does your window manager
>   indicate whether the frame is focused in its window decorations, and if
>   so, are such indications active when Emacs appears to hang?
>
> Yes it does, and yes they are.

diff --git a/src/gtkutil.c b/src/gtkutil.c
index 6cfb4034ed9..a7c547afd39 100644
--- a/src/gtkutil.c
+++ b/src/gtkutil.c
@@ -1593,6 +1593,9 @@ xg_create_frame_widgets (struct frame *f)
 
   /* Use same names as the Xt port does.  I.e. Emacs.pane.emacs by default */
   gtk_widget_set_name (wtop, EMACS_CLASS);
+#if defined HAVE_XINPUT2 && defined HAVE_GTK3
+  gtk_widget_add_events (wtop, GDK_ALL_EVENTS_MASK);
+#endif /* HAVE_XINPUT2 && HAVE_GTK3 */
   gtk_widget_set_name (wvbox, "pane");
   gtk_widget_set_name (wfixed, SSDATA (Vx_resource_name));
 
Does this solve the problem?

Thanks for testing.