Function: smart-window-of-coords
smart-window-of-coords is a byte-compiled function defined in
hui-window.el.
Signature
(smart-window-of-coords COORDS)
Documentation
Return window in which COORDS fall or nil if none.
Ignores minibuffer window.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hui-window.el
(defun smart-window-of-coords (coords)
"Return window in which COORDS fall or nil if none.
Ignores minibuffer window."
(cond ((null coords) nil)
((markerp coords)
(get-buffer-window (marker-buffer coords)))
((eventp coords)
(let ((w-or-f (posn-window (event-start coords))))
(when (framep w-or-f) (setq w-or-f (frame-selected-window w-or-f)))
w-or-f))
(t (let ((window-list (hypb:window-list 'no-minibuf))
(window)
(w))
(while (and (not window) window-list)
(setq w (car window-list)
window-list (cdr window-list)
window (smart-coords-in-window-p coords w)))
window))))