[haiku-bugs] Re: [Haiku] #1451: Right mouse click over Nick lister in Bowser: Setup doesn't work in Bowser 1.1.1

  • From: "siarzhuk" <trac@xxxxxxxxxxxx>
  • Date: Sun, 18 Nov 2012 11:54:56 -0000

#1451: Right mouse click over Nick lister in Bowser: Setup doesn't work in 
Bowser
1.1.1
----------------------------+---------------------------
   Reporter:  ackcontrols   |      Owner:  axeld
       Type:  bug           |     Status:  new
   Priority:  normal        |  Milestone:  R1
  Component:  Applications  |    Version:  R1/pre-alpha1
 Resolution:                |   Keywords:
 Blocked By:                |   Blocking:
Has a Patch:  0             |   Platform:  All
----------------------------+---------------------------

Comment (by siarzhuk):

 The problem is that Bowser uses MessageFilter to handle menu and keyboard
 events in the list of nicks. That filter is created with following flags:

 
http://bowser.cvs.sourceforge.net/viewvc/bowser/Bowser/src/SetupWindow.cpp?revision=1.13&view=markup

 {{{

 1217    NickFilter::NickFilter (SetupView *sv)
 1218            : BMessageFilter (B_PROGRAMMED_DELIVERY, B_LOCAL_SOURCE),
 1219              view (sv)
 1220    {
 1221    }

 }}}

 And changing B_LOCAL_SOURCE to B_ANY_SOURCE restores function of context
 menu. Looks like Haiku has another meaning about B_LOCAL_SOURCE than BeOS
 had.

 BeBook say about the 'source' parameter:

 '''source''' ''Specifes whether the sender of the message must be local
 vis-a-vis this app (B_LOCAL_SOURCE), remote (B_REMOTE_SOURCE), or either
 (B_ANY_SOURCE). The default is B_ANY_SOURCE.''

 In my opinion messages issued by user's mouse click should be counted as
 remote ones, so this issue looks like BeOS error.

 Do you have any opinions about this, gentlemen?

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/1451#comment:2>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: