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:
Stephan Aßmus
2005-11-11 00:00:29 +00:00
parent 8f5f0ec4b1
commit 8111539117
+8 -1
View File
@@ -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