Renamed the new "_fake" mouse moved boolean to "be:transit_only", as suggested

by Axel.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29519 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ryan Leavengood 2009-03-14 15:32:52 +00:00
parent 3e37362327
commit 04caac4ad1
2 changed files with 6 additions and 5 deletions

View File

@ -38,9 +38,10 @@ ScreenSaverFilter::Filter(BMessage* message, BHandler** target)
}
case B_MOUSE_MOVED:
{
// ignore the initial "fake" B_MOUSE_MOVED sent by the app_server
bool fake = false;
if (message->FindBool("_fake", &fake) == B_OK && fake)
// ignore the initial B_MOUSE_MOVED sent by the app_server
bool transit_only = false;
if (message->FindBool("be:transit_only", &transit_only) == B_OK
&& transit_only)
return B_DISPATCH_MESSAGE;
// Fall through

View File

@ -555,8 +555,8 @@ EventDispatcher::_SendFakeMouseMoved(BMessage* message)
moved.AddInt32("_view_token", viewToken);
// this only belongs to the new target
moved.AddBool("_fake", true);
// let the view know this is fake
moved.AddBool("be:transit_only", true);
// let the view know this what not user generated
_SendMessage(target, &moved, kMouseTransitImportance);