[haiku-development] Re: Attaching notes to any open windows

Salvatore Benedetto <emitrax@xxxxxxxxx> wrote:
 ...
> my idea would be to provide an application
> server addon, that intercept BMessages from
> the notes application when drag and dropping
> a note into a window, in order to get ID of
> the note, position of where the note has to
> be attached (draw) and of course the ID of 
> the window.

There is a simpler solution. One should be able
to use BRoster information on which application/
window gets activated when selecting the window
one wants to annotate.

You have to initiate the annotation somehow, by
using a utility application ("Add note to a window"?)
by pressing a SpicyKeys key combination, clicking
its replicant in Deskbar or opening it from Deskbar
or Tracker. Any of these should work.

This application could ask you to click the window
you want to annotate, wait and see which application
gets activated (receives focus), check which window
is the active one, and then open a pad on top of it.

/Jonas.



Other related posts: