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 14:31:48 +0800

Jim Rees <[email-masked]> writes:

> No, that does not solve the problem.

Nevermind, I set aside some time to debug this.  A missing unblock_input
was the culprit, which has now been fixed on master:

diff --git a/src/xterm.c b/src/xterm.c
index fe398171754..c8a43785564 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -28828,7 +28828,10 @@ x_focus_frame (struct frame *f, bool noactivate)
      window.  (bug#65116)*/
 
   if (f == dpyinfo->x_focus_frame && !FRAME_HAS_MINIBUF_P (f))
-    return;
+    {
+      unblock_input ();
+      return;
+    }
 #endif /* HAVE_GTK3 */
 
   if (FRAME_X_EMBEDDED_P (f))