[haiku] Re: Feature for Emacs

  • From: "Thomas S. Guerin" <tsguerin@xxxxxxxxx>
  • To: haiku@xxxxxxxxxxxxx
  • Date: Sun, 3 Apr 2022 20:43:26 -0400

I barely code. You are way over my head. Just thought I could help with
your English

On Sun, Apr 3, 2022, 8:40 PM Thomas S. Guerin <tsguerin@xxxxxxxxx> wrote:


On Sun, Apr 3, 2022, 7:08 PM Po Lu <dmarc-noreply@xxxxxxxxxxxxx> wrote:

Adrien Destugues <pulkomandy@xxxxxxxxx> writes:

You have two options:
- Use get_mouse from interface kit that gives you the window position
on screen. Then use BApplication::WindowAt(index) to iterate over your
windows and find one intersecting that position. You will get events
even if the window is currently obscured by something

Thanks, but the Be Book says the order of the window list doesn't have
any significance, which means it might not behave reasonably if a window
is stacked on top of another.

- Subclass BView::MouseMoved to get events delivered directly to the
root view of each of your windows. You only get events when the mouse
is really in your window, unless you use SetMouseEventMask to get
more.

I'm not sure this is the right option.  I don't think BView::MouseMoved
is called if a window is programmatically placed underneath the mouse
(or for that matter, programmatically removed), for example.


Other related posts: