diff options
| author | Richard M. Stallman | 1994-04-22 20:19:41 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-04-22 20:19:41 +0000 |
| commit | aa718a1fab3ab7e9b658a19179980d13a48e2cd9 (patch) | |
| tree | a76bad63573b1008cc6dfef29117e54388bb4027 | |
| parent | 09a1077ce25adc5ac367a95ede0a93e45f8f03b5 (diff) | |
| download | emacs-aa718a1fab3ab7e9b658a19179980d13a48e2cd9.tar.gz emacs-aa718a1fab3ab7e9b658a19179980d13a48e2cd9.zip | |
(mouse-extend): Handle case where posn-window is a frame.
| -rw-r--r-- | lisp/mouse-sel.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/mouse-sel.el b/lisp/mouse-sel.el index f079c62f978..861a5ed1759 100644 --- a/lisp/mouse-sel.el +++ b/lisp/mouse-sel.el | |||
| @@ -310,7 +310,10 @@ This should be bound to a down-mouse event." | |||
| 310 | ;; Ignore any movement outside the frame | 310 | ;; Ignore any movement outside the frame |
| 311 | ((eq (car-safe event) 'switch-frame) nil) | 311 | ((eq (car-safe event) 'switch-frame) nil) |
| 312 | ((and (posn-window end) | 312 | ((and (posn-window end) |
| 313 | (not (eq (window-frame (posn-window end)) | 313 | (not (eq (let ((posn-w (posn-window end))) |
| 314 | (if (windowp posn-w) | ||
| 315 | (window-frame posn-w) | ||
| 316 | posn-w)) | ||
| 314 | (window-frame orig-window)))) nil) | 317 | (window-frame orig-window)))) nil) |
| 315 | 318 | ||
| 316 | ;; Different window, same frame | 319 | ;; Different window, same frame |