* Refactored a method for getting the transit from a mouse moved message.
* In _StealMouseMessage(), don't maintain fLastMouseMovedView, instead, prevent B_MOUSE_MOVED message from being stolen that are important for detecting transit changes. The point is that some apps (like Tracker) are shooting themselves in the foot because they steal mouse messages via GetMouse() in one place, but then rely on sane transit values in another place. The way it works now, the view in question may get notified of the same mouse moved coordinate twice, once via GetMouse() and once via MouseMoved(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28002 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -301,6 +301,8 @@ private:
|
||||
BHandler* target, bool usePreferred);
|
||||
bool _StealMouseMessage(BMessage* message,
|
||||
bool& deleteMessage);
|
||||
uint32 _TransitForMouseMoved(BView* view,
|
||||
BView* viewUnderMouse) const;
|
||||
|
||||
bool InUpdate();
|
||||
void _DequeueAll();
|
||||
|
||||
Reference in New Issue
Block a user