[haiku-development] Implement Begin- and EndRectTracking() in the app_server

  • From: Vivek Roy <vivekroyandroid@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sun, 26 Mar 2017 13:11:00 +0530

Greetings,
I was trying the following ticket: https://dev.haiku-os.org/ticket/1837
As stippi commented, it would be better to implement it under the
MouseFilter section of the Desktop class. What I was trying to do is have a
BRect variable in the MouseFilter class which gets updated with each
B_MOUSE_MOVED.
The problem is if the mouse moved outside the bounds of the view, the
BPoint 'where' would return a totally different value (as it is relative to
the parent).
PulkoMandy suggested (on IRC), we can use the ConvertToScreen method of
BView class. Can the DrawingEngine be used to draw in the coordinate system
of the screen? Is it okay if in this case I call the drawingEngine from
inside MouseFilter, or is there something else I should do?
Thank You,
Vivek Roy

Other related posts: