changeset 7023:a326806e4752

(mouse-extend): Handle case where posn-window is a frame.
author Richard M. Stallman <rms@gnu.org>
date Fri, 22 Apr 1994 20:19:41 +0000
parents 5635564a3064
children f00ad05e91b0
files lisp/mouse-sel.el
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mouse-sel.el	Fri Apr 22 18:28:22 1994 +0000
+++ b/lisp/mouse-sel.el	Fri Apr 22 20:19:41 1994 +0000
@@ -310,7 +310,10 @@
 		 ;; Ignore any movement outside the frame
 		 ((eq (car-safe event) 'switch-frame) nil)
 		 ((and (posn-window end)
-		       (not (eq (window-frame (posn-window end))
+		       (not (eq (let ((posn-w (posn-window end)))
+				  (if (windowp posn-w)
+				      (window-frame posn-w)
+				    posn-w))
 				(window-frame orig-window)))) nil)
 		     
 		 ;; Different window, same frame