[Haiku-bugs] [Haiku] #3510: BWindow filters do not receive mouse clicks
matjako
trac at haiku-os.org
Mon Mar 2 09:59:06 CET 2009
#3510: BWindow filters do not receive mouse clicks
----------------------------------+-----------------------------------------
Reporter: matjako | Owner: axeld
Type: bug | Status: new
Priority: normal | Milestone: R1
Component: Kits/Application Kit | Version: R1 development
Blockedby: | Platform: All
Blocking: |
----------------------------------+-----------------------------------------
A filter added to a BWindow instance with AddCommonFilter() does not
receive B_MOUSE_DOWN and B_MOUSE_UP messages, but it _does_ receive
B_MOUSE_MOVED. That inhibits simple implementation of a mouse capture
filter etc.
EXPECTED BEHAVIOUR
Like in BeOS R5 - all mouse messages are passed to a filter added to a
BLooper.
STEPS TO REPRODUCE
Take any application with a window and some views in it and add a common
filter to that window. Like so:
//... in window init
AddCommonFilter(new BMessageFilter(B_ANY_DELIVERY, B_LOCAL_SOURCE,
pass_thru_filter);
//...
filter_result pass_thru_filter(BMessage *message, BHandler **target,
BMessageFilter *messageFilter)
{
message->PrintToStream();
return B_DISPATCH_MESSAGE;
}
Run in Terminal. Click and hover over views in the window - only
B_MOUSE_MOVED messages print out, mouse clicks appear to be MIA.
--
Ticket URL: <http://dev.haiku-os.org/ticket/3510>
Haiku <http://dev.haiku-os.org>
The Haiku operating system.
More information about the Haiku-bugs
mailing list