Check if the mouse click is in the decorator drag area.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38572 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Clemens Zeidler 2010-09-07 21:27:13 +00:00
parent a7ea5b51c6
commit 3ef84cd4bb

View File

@ -117,7 +117,7 @@ StackAndTile::KeyPressed(uint32 what, int32 key, int32 modifiers)
if (!wasPressed && fSATKeyPressed)
_StartSAT();
}
return;
}
@ -128,6 +128,13 @@ StackAndTile::MouseDown(Window* window, BMessage* message, const BPoint& where)
SATWindow* satWindow = GetSATWindow(window);
if (!satWindow)
return;
int32 modifiers = message->FindInt32("modifiers");
int32 buttons = message->FindInt32("buttons");
if (satWindow->GetDecorator()->MouseAction(message, where, buttons,
modifiers) != CLICK_DRAG)
return;
ASSERT(fCurrentSATWindow == NULL);
fCurrentSATWindow = satWindow;