Function: x-dnd-compute-root-window-position
x-dnd-compute-root-window-position is a byte-compiled function defined
in x-dnd.el.gz.
Signature
(x-dnd-compute-root-window-position FRAME)
Documentation
Return the position of FRAME's edit widget relative to the root window.
The value is a cons of (X . Y), describing the position of FRAME's edit widget (inner window) relative to the root window of its screen.
Source Code
;; Defined in /usr/src/emacs/lisp/x-dnd.el.gz
(defun x-dnd-compute-root-window-position (frame)
"Return the position of FRAME's edit widget relative to the root window.
The value is a cons of (X . Y), describing the position of
FRAME's edit widget (inner window) relative to the root window of
its screen."
(or (frame-parameter frame 'dnd-root-window-position)
(let* ((result (x-translate-coordinates frame))
(param (cons (car result) (cadr result))))
(unless result
(error "Frame isn't on the same screen as its root window"))
(prog1 param
(set-frame-parameter frame 'dnd-root-window-position param)))))