Function: posframe-poshandler-window-top-right-corner

posframe-poshandler-window-top-right-corner is a byte-compiled function defined in posframe.el.

Signature

(posframe-poshandler-window-top-right-corner INFO)

Documentation

Posframe's position handler.

This poshandler function let top right corner of posframe align to top left right of window.

The structure of INFO can be found in docstring of posframe-show.

Source Code

;; Defined in ~/.emacs.d/elpa/posframe-20260415.14/posframe.el
(defun posframe-poshandler-window-top-right-corner (info)
  "Posframe's position handler.

This poshandler function let top right corner of posframe align to
top left right of window.

The structure of INFO can be found in docstring of
`posframe-show'."
  (let* ((window-left (plist-get info :parent-window-left))
         (window-top (plist-get info :parent-window-top))
         (window-width (plist-get info :parent-window-width))
         (posframe-width (plist-get info :posframe-width)))
    (cons (+ window-left window-width
             (- 0 posframe-width))
          window-top)))