#5156: Issue with mouse up and mouse down messages ---------------------------------------+---------------------------- Reporter: mmadia | Owner: axeld Type: bug | Status: new Priority: normal | Milestone: R1 Component: Applications/Workspaces | Version: R1/Development Resolution: | Keywords: Blocked By: | Blocking: Has a Patch: 0 | Platform: All ---------------------------------------+---------------------------- Comment (by leavengood): I've tested and reproduced this, and know why it is caused. It is due to the WorkspacesView inside app_server not tracking the mouse outside its frame like it should. It needs to use the app_server equivalent of the BView::SetMouseEventMask method on MouseDown. Right now there isn't really an easy equivalent, which is why I have not fixed it. I tried calling AddTemporaryListener on the EventDispatcher but it does not work as I expect. Any mouse moves or a mouse up outside the view are never sent to it. I think this is because the only way mouse messages get to the Window class inside app_server is through the MouseFilter inside the Desktop class. And in that case the mouse related messages in Window try to find the view under the mouse and only sends the messages if a view is there. Which of course never works when the mouse moves outside the Workspaces window. What is funny is this still happens even when the Autoraise feature is turned on, which causes all mouse moves to go to the Workspaces window. But these never make it to the WorkspacesView inside app_server when the mouse is outside the window frame. In fact I'm not sure it is possible to fix this with the current app_server design. But I'm no expert on the somewhat convoluted mouse handling, even after several hours of looking at it. -- Ticket URL: <http://dev.haiku-os.org/ticket/5156#comment:1> Haiku <http://dev.haiku-os.org> Haiku - the operating system.