diff options
| -rw-r--r-- | lisp/xt-mouse.el | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/xt-mouse.el b/lisp/xt-mouse.el index 80927647fbb..61f4f17ed2a 100644 --- a/lisp/xt-mouse.el +++ b/lisp/xt-mouse.el | |||
| @@ -146,10 +146,12 @@ | |||
| 146 | 146 | ||
| 147 | (setq xterm-mouse-x x | 147 | (setq xterm-mouse-x x |
| 148 | xterm-mouse-y y) | 148 | xterm-mouse-y y) |
| 149 | (if w | 149 | (setq |
| 150 | (list mouse (posn-at-x-y (- x left) (- y top) w t)) | 150 | last-input-event |
| 151 | (list mouse | 151 | (if w |
| 152 | (append (list nil 'menu-bar) (nthcdr 2 (posn-at-x-y x y w t))))))) | 152 | (list mouse (posn-at-x-y (- x left) (- y top) w t)) |
| 153 | (list mouse | ||
| 154 | (append (list nil 'menu-bar) (nthcdr 2 (posn-at-x-y x y w t)))))))) | ||
| 153 | 155 | ||
| 154 | ;;;###autoload | 156 | ;;;###autoload |
| 155 | (define-minor-mode xterm-mouse-mode | 157 | (define-minor-mode xterm-mouse-mode |