Fix Help functions for clicks on tool bar and tab bar

* lisp/mouse.el (mouse-minibuffer-check): Don't assume posn-window
returns a window.  (Bug#5199)
This commit is contained in:
Eli Zaretskii 2021-10-14 12:29:43 +03:00
parent 74deafe921
commit b9b78b2631

View file

@ -571,7 +571,8 @@ This is the keyboard interface to \\[context-menu-map]."
(defun mouse-minibuffer-check (event)
(let ((w (posn-window (event-start event))))
(and (window-minibuffer-p w)
(and (windowp w)
(window-minibuffer-p w)
(not (minibuffer-window-active-p w))
(user-error "Minibuffer window is not active")))
;; Give temporary modes such as isearch a chance to turn off.