diff options
| -rw-r--r-- | lisp/imenu.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/imenu.el b/lisp/imenu.el index 315e2caf599..3fedade04e7 100644 --- a/lisp/imenu.el +++ b/lisp/imenu.el | |||
| @@ -964,6 +964,7 @@ The returned value is on the form (INDEX-NAME . INDEX-POSITION)." | |||
| 964 | ;; If selected by mouse, see to that the window where the mouse is | 964 | ;; If selected by mouse, see to that the window where the mouse is |
| 965 | ;; really is selected. | 965 | ;; really is selected. |
| 966 | (and mouse-triggered | 966 | (and mouse-triggered |
| 967 | (not (equal last-nonmenu-event '(menu-bar))) | ||
| 967 | (let ((window (posn-window (event-start last-nonmenu-event)))) | 968 | (let ((window (posn-window (event-start last-nonmenu-event)))) |
| 968 | (or (framep window) (select-window window)))) | 969 | (or (framep window) (select-window window)))) |
| 969 | ;; Create a list for this buffer only when needed. | 970 | ;; Create a list for this buffer only when needed. |