# HG changeset patch # User Richard M. Stallman # Date 767045981 0 # Node ID a326806e47523a9d4c8bdf507519cd62f8f557b8 # Parent 5635564a3064c37ad38ed5f2e798a87471b25e18 (mouse-extend): Handle case where posn-window is a frame. diff -r 5635564a3064 -r a326806e4752 lisp/mouse-sel.el --- 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