From b9b78b263148d26ea585622e98e8e5ccd2602799 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Thu, 14 Oct 2021 12:29:43 +0300 Subject: [PATCH] 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) --- lisp/mouse.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/mouse.el b/lisp/mouse.el index bb47d04a3a8..bcb58d153a8 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el @@ -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. -- 2.39.2