bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#47969: 28.0.50; Losing minibuffer focus in trying M-x command


From: martin rudalics
Subject: bug#47969: 28.0.50; Losing minibuffer focus in trying M-x command
Date: Mon, 3 May 2021 19:31:30 +0200

> I'd actually trust your-then judgment, and instead explore the
> possibility of solving this as I proposed up-thread.  Undoing past
> fixes when we don't understand the effects is bad mantra, it runs the
> risk of fixing one problem by reintroducing another.

You mean your earlier

> FWIW, I think we should instead temporarily disable
> mouse-autoselect-window when a minibuffer is active.

as in the untested below?

martin


diff --git a/lisp/window.el b/lisp/window.el
index f9b28fece1..b59fcd323f 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -10672,7 +10672,8 @@ mouse-autoselect-window-select
          (window (and frame (window-at mouse-x mouse-y frame))))
     (cond
       ((or (and (fboundp 'menu-or-popup-active-p) (menu-or-popup-active-p))
-          (and window
+           (> (minibuffer-depth) 0)
+           (and window
                (let ((coords (coordinates-in-window-p
                               (cdr mouse-position) window)))
                  (and (not (consp coords))





reply via email to

[Prev in Thread] Current Thread [Next in Thread]