[haiku] Feature for Emacs

  • From: "Po Lu" <dmarc-noreply@xxxxxxxxxxxxx> ("luangruo")
  • To: haiku@xxxxxxxxxxxxx
  • Date: Sun, 03 Apr 2022 19:50:19 +0800

Emacs provides a Lisp function called `mouse-position', which returns
the window (in Emacs parlance, a frame) the mouse is currently under, if
it was created by Emacs.

Implementing this function correctly on Haiku requires a way to find the
window underneath the mouse pointer, but I don't see how to get that
information.

It would be nice if a function to obtain that window was added to the
interface kit.  Perhaps it would be named BApplication::GetWindowAtPoint
(BPoint), and return the BWindow underneath a given point (or the mouse
pointer location) if it was created by the calling application, or NULL
if it was not.

Thanks in advance.

Other related posts: