a quick solution to get some B_EXITED_VIEW transit when the mouse leaves a view, probably gets replaced when Axel is looking into the event handling stuff
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14842 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -771,7 +771,14 @@ BWindow::DispatchMessage(BMessage *msg, BHandler *target)
|
||||
msg->FindInt32("transit", (int32 *)&transit);
|
||||
if (target && target != this && target != top_view) {
|
||||
if (BView *view = dynamic_cast<BView *>(target)) {
|
||||
fLastMouseMovedView = view;
|
||||
if (fLastMouseMovedView != view) {
|
||||
if (fLastMouseMovedView) {
|
||||
BPoint p(where);
|
||||
fLastMouseMovedView->ConvertFromScreen(&p);
|
||||
fLastMouseMovedView->MouseMoved(p, B_EXITED_VIEW, NULL);
|
||||
}
|
||||
fLastMouseMovedView = view;
|
||||
}
|
||||
view->ConvertFromScreen(&where);
|
||||
view->MouseMoved(where, transit, NULL);
|
||||
} else
|
||||
|
||||
Reference in New Issue
Block a user