]> git.eshelyaron.com Git - emacs.git/commitdiff
(mouse-drag-region-1): Display region highlight only in the selected window.
authorRichard M. Stallman <rms@gnu.org>
Wed, 10 Apr 2002 15:04:19 +0000 (15:04 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 10 Apr 2002 15:04:19 +0000 (15:04 +0000)
lisp/mouse.el

index f91707f1eea6fc7aa6845f2b55d99afc44302fe5..01f4479465fb699e24a4d487e710a769cc4c2080 100644 (file)
@@ -739,7 +739,8 @@ If the click is in the echo area, display the `*Messages*' buffer."
     (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