* Style police at work.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29531 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -40,9 +40,9 @@ ScreenSaverFilter::Filter(BMessage* message, BHandler** target)
|
|||||||
case B_MOUSE_MOVED:
|
case B_MOUSE_MOVED:
|
||||||
{
|
{
|
||||||
// ignore the initial B_MOUSE_MOVED sent by the app_server
|
// ignore the initial B_MOUSE_MOVED sent by the app_server
|
||||||
bool transit_only = false;
|
bool transitOnly = false;
|
||||||
if (message->FindBool("be:transit_only", &transit_only) == B_OK
|
if (message->FindBool("be:transit_only", &transitOnly) == B_OK
|
||||||
&& transit_only)
|
&& transitOnly)
|
||||||
return B_DISPATCH_MESSAGE;
|
return B_DISPATCH_MESSAGE;
|
||||||
|
|
||||||
// Fall through
|
// Fall through
|
||||||
|
|||||||
@@ -18,7 +18,6 @@
|
|||||||
|
|
||||||
#include <WindowPrivate.h>
|
#include <WindowPrivate.h>
|
||||||
|
|
||||||
using std::max;
|
|
||||||
|
|
||||||
WorkspacesView::WorkspacesView(BRect frame, BPoint scrollingOffset,
|
WorkspacesView::WorkspacesView(BRect frame, BPoint scrollingOffset,
|
||||||
const char* name, int32 token, uint32 resizeMode, uint32 flags)
|
const char* name, int32 token, uint32 resizeMode, uint32 flags)
|
||||||
@@ -558,7 +557,7 @@ WorkspacesView::MouseMoved(BMessage* message, BPoint where)
|
|||||||
|
|
||||||
// Don't treat every little mouse move as a window move - this would
|
// Don't treat every little mouse move as a window move - this would
|
||||||
// make it too hard to activate a workspace.
|
// make it too hard to activate a workspace.
|
||||||
float diff = max(fabs(fClickPoint.x - where.x),
|
float diff = max_c(fabs(fClickPoint.x - where.x),
|
||||||
fabs(fClickPoint.y - where.y));
|
fabs(fClickPoint.y - where.y));
|
||||||
if (!fHasMoved && diff > 2)
|
if (!fHasMoved && diff > 2)
|
||||||
fHasMoved = true;
|
fHasMoved = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user