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:
@@ -117,7 +117,7 @@ StackAndTile::KeyPressed(uint32 what, int32 key, int32 modifiers)
|
|||||||
if (!wasPressed && fSATKeyPressed)
|
if (!wasPressed && fSATKeyPressed)
|
||||||
_StartSAT();
|
_StartSAT();
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -128,6 +128,13 @@ StackAndTile::MouseDown(Window* window, BMessage* message, const BPoint& where)
|
|||||||
SATWindow* satWindow = GetSATWindow(window);
|
SATWindow* satWindow = GetSATWindow(window);
|
||||||
if (!satWindow)
|
if (!satWindow)
|
||||||
return;
|
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);
|
ASSERT(fCurrentSATWindow == NULL);
|
||||||
fCurrentSATWindow = satWindow;
|
fCurrentSATWindow = satWindow;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user