summaryrefslogtreecommitdiff
path: root/lisp/mouse-drag.el
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2015-06-30 18:59:21 +0300
committerEli Zaretskii <eliz@gnu.org>2015-06-30 18:59:21 +0300
commitedd09381c618125d8aa23c9414034fbeee176305 (patch)
tree009641f2aad95cc9852b06b036a4e6a9f143be94 /lisp/mouse-drag.el
parent881c4790266c42805ac1b9a5f1bbe13d3dd23478 (diff)
downloademacs-edd09381c618125d8aa23c9414034fbeee176305.tar.gz
Don't block changes in mouse pointer inside 'track-mouse'
* etc/NEWS: * doc/lispref/frames.texi (Mouse Tracking): Document the special effect of setting 'track-mouse' to 'dragging'. * lisp/textmodes/artist.el (artist-mouse-draw-continously): * lisp/ruler-mode.el (ruler-mode-mouse-drag-any-column-iteration): * lisp/mouse-drag.el (mouse-drag-throw): * lisp/mouse.el (mouse-drag-line): Set 'track-mouse' to 'dragging' to avoid changes in the shape of the mouse pointer. * src/xdisp.c (define_frame_cursor1): Don't change the mouse pointer shape when do_mouse_tracking has the value of 'dragging', not just any non-nil value. (Bug#20934) (syms_of_xdisp): DEFSYM 'dragging'.
Diffstat (limited to 'lisp/mouse-drag.el')
-rw-r--r--lisp/mouse-drag.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/mouse-drag.el b/lisp/mouse-drag.el
index 88838edaaed..945c305db7d 100644
--- a/lisp/mouse-drag.el
+++ b/lisp/mouse-drag.el
@@ -222,6 +222,8 @@ To test this function, evaluate:
(col-scrolling-p (mouse-drag-should-do-col-scrolling)))
(select-window start-window)
(track-mouse
+ ;; Don't change the mouse pointer shape while we drag.
+ (setq track-mouse 'dragging)
(while (progn
(setq event (read-event)
end (event-end event)