]> code.delx.au - gnu-emacs/blobdiff - lisp/mouse.el
Don't block changes in mouse pointer inside 'track-mouse'
[gnu-emacs] / lisp / mouse.el
index 7854d32eb20421a4d7078da5bea26fb183cf019f..9bb00cb105e33b907e13c657b8423dda2afdefad 100644 (file)
@@ -468,8 +468,10 @@ must be one of the symbols `header', `mode', or `vertical'."
                  (setq dragged t)
                  (adjust-window-trailing-edge window growth nil t))
                (setq last-position position))))))
-      ;; Start tracking.
-      (setq track-mouse t)
+      ;; Start tracking.  The special value 'dragging' signals the
+      ;; display engine to freeze the mouse pointer shape for as long
+      ;; as we drag.
+      (setq track-mouse 'dragging)
       ;; Loop reading events and sampling the position of the mouse.
       (setq exitfun
            (set-transient-map