# HG changeset patch # User Richard M. Stallman # Date 1018451059 0 # Node ID c3654e3e894b6afba7c81c896ed90de0598faacd # Parent b64869712ee015942b3dc50686d2c7d4e966a160 (mouse-drag-region-1): Display region highlight only in the selected window. diff -r b64869712ee0 -r c3654e3e894b lisp/mouse.el --- a/lisp/mouse.el Wed Apr 10 14:55:19 2002 +0000 +++ b/lisp/mouse.el Wed Apr 10 15:04:19 2002 +0000 @@ -739,7 +739,8 @@ (setq start-point (point)) (let ((range (mouse-start-end start-point start-point click-count))) (move-overlay mouse-drag-overlay (car range) (nth 1 range) - (window-buffer start-window))) + (window-buffer start-window)) + (overlay-put mouse-drag-overlay 'window (selected-window))) (deactivate-mark) ;; end-of-range is used only in the single-click case. ;; It is the place where the drag has reached so far