mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-23 07:19:15 +00:00
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).
This commit is contained in:
parent
3e7a216b77
commit
e365e903db
@ -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))))
|
||||
|
Loading…
Reference in New Issue
Block a user