From: Dave Love Date: Wed, 27 Sep 2000 08:59:33 +0000 (+0000) Subject: Fix last change. X-Git-Tag: emacs-pretest-21.0.90~1356 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d32af6dd3de230419e18095161c1ad7cec59deab;p=emacs.git Fix last change. --- diff --git a/lisp/mouse.el b/lisp/mouse.el index d612a2017ec..90b9a572aeb 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el @@ -60,14 +60,14 @@ PREFIX is the prefix argument (if any) to pass to the command." (if filter (funcall filter (symbol-function map)) map))))) event) (unless position - (let ((mp (mouse-position))) + (let ((mp (mouse-pixel-position))) (setq position (list (list (cadr mp) (cddr mp)) (car mp))))) ;; The looping behavior was taken from lmenu's popup-menu-popup (while (and map (setq event ;; map could be a prefix key, in which case ;; we need to get its function cell ;; definition. - (x-popup-menu (or position (mouse-position)) (indirect-function map)))) + (x-popup-menu position (indirect-function map)))) ;; Strangely x-popup-menu returns a list. ;; mouse-major-mode-menu was using a weird: ;; (key-binding (apply 'vector (append '(menu-bar) menu-prefix events)))