[haiku-commits] Re: r36811 - in haiku/trunk: headers/os/interface headers/private/app src/kits/interface src/servers/app

  • From: Stephan Assmus <superstippi@xxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 14 May 2010 22:24:25 +0200

On 2010-05-14 at 22:15:25 [+0200], Stefano Ceccherini 
<stefano.ceccherini@xxxxxxxxx> wrote:
> 2010/5/14  <superstippi@xxxxxx>:
> > Author: stippi
> > Date: 2010-05-14 17:53:09 +0200 (Fri, 14 May 2010)
> > New Revision: 36811
> > Changeset: http://dev.haiku-os.org/changeset/36811/haiku
> >
> > Modified:
> >   haiku/trunk/headers/os/interface/InterfaceDefs.h
> >   haiku/trunk/headers/private/app/ServerProtocol.h
> >   haiku/trunk/src/kits/interface/InterfaceDefs.cpp
> >   haiku/trunk/src/servers/app/ProfileMessageSupport.cpp
> >   haiku/trunk/src/servers/app/ServerApp.cpp
> > Log:
> > Patch by Wim van der Meer: Implemented global Interface Kit function to 
> > retrieve
> > the current mouse position and pressed buttons. I've changed the return 
> > code
> > to status_t and added anal error checking, most of the rest of the file 
> > is not
> > doing it, though... :-) Thanks, Wim!
> >
> 
> How is this different from BView::GetMouse() ? Or, better said:
> shouldn't they share the same server side-implementation ?

Indeed BView::GetMouse() without history is similar. But the difference is 
also what thread handles the reply. For the BView, it's the ServerWindow, 
but for the new global call it's ServerApp.

Best regards,
-Stephan

Other related posts: