Reverted my change to usage of _get_object_token_(), it already means to use

a cached token... doh! Thanks Axel!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31140 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2009-06-20 15:47:28 +00:00
parent 3756e25935
commit 8f24c71102
3 changed files with 18 additions and 16 deletions
+2 -2
View File
@@ -2905,7 +2905,7 @@ BWindow::_CreateTopView()
fTopView->fTopLevelView = true;
//inhibit check_lock()
fLastViewToken = fTopView->fServerToken;
fLastViewToken = _get_object_token_(fTopView);
// set fTopView's owner, add it to window's eligible handler list
// and also set its next handler to be this window.
@@ -3089,7 +3089,7 @@ BWindow::_UnpackMessage(unpack_cookie& cookie, BMessage** _message,
cookie.focus_token = _get_object_token_(*_target);
if (fLastMouseMovedView != NULL && cookie.message->what == B_MOUSE_MOVED)
cookie.last_view_token = fLastMouseMovedView->fServerToken;
cookie.last_view_token = _get_object_token_(fLastMouseMovedView);
*_usePreferred = false;
}