emacs-diffs
[Top][All Lists]
Advanced

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

master e365e90: Do not switch to other window when minibuffer is selecte


From: Lars Ingebrigtsen
Subject: master e365e90: Do not switch to other window when minibuffer is selected
Date: Tue, 25 May 2021 15:41:13 -0400 (EDT)

branch: master
commit e365e903dbdbe0a4dee695e7b28cae7ab2eb2a5e
Author: Gregory Heytings <gregory@heytings.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Do not switch to other window when minibuffer is selected
    
    * lisp/window.el (handle-select-window): Do not silently switch to
    other window when minibuffer is selected and
    mouse-autoselect-window is t (Bug#47969).
---
 lisp/window.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lisp/window.el b/lisp/window.el
index 0f94d8a..fd1c617 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -10055,6 +10055,9 @@ is active.  This function is run by 
`mouse-autoselect-window-timer'."
                 ;; already selected.
                 (and (not (eq frame (selected-frame)))
                      (frame-parameter frame 'no-accept-focus))
+                ;; Don't switch if window autoselection with mouse is active
+                ;; and minibuffer window is selected.
+                (and mouse-autoselect-window (window-minibuffer-p))
                 ;; Don't switch to minibuffer window unless it's active.
                 (and (window-minibuffer-p window)
                      (not (minibuffer-window-active-p window))))



reply via email to

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