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:
parent
3e37362327
commit
04caac4ad1
@ -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
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user