Function: mouse-position-for-drag-line

mouse-position-for-drag-line is a byte-compiled function defined in mouse.el.gz.

Signature

(mouse-position-for-drag-line TTY)

Documentation

Return the last mouse position observed for the purposes of mouse-drag-line.

If TTY is non-nil, return the last attested position of the mouse relative to the root frame. Otherwise, return the position of the mouse relative to the selected frame, unless the current drag operation was produced from a touch screen event, in which event, return the position of the active touch-screen tool relative to the same.

Source Code

;; Defined in /usr/src/emacs/lisp/mouse.el.gz
(defun mouse-position-for-drag-line (tty)
  "Return the last mouse position observed for the purposes of `mouse-drag-line'.
If TTY is non-nil, return the last attested position of the mouse
relative to the root frame.  Otherwise, return the position of the mouse
relative to the selected frame, unless the current drag operation was
produced from a touch screen event, in which event, return the position
of the active touch-screen tool relative to the same."
  (if tty (mouse-position-in-root-frame)
    (or (touch-screen-last-drag-position)
        (mouse-absolute-pixel-position))))