From 3ef84cd4bbeb8d155f21ffe022671a8c51e671e3 Mon Sep 17 00:00:00 2001 From: Clemens Zeidler Date: Tue, 7 Sep 2010 21:27:13 +0000 Subject: [PATCH] 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 --- src/add-ons/decorators/SATDecorator/StackAndTile.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/add-ons/decorators/SATDecorator/StackAndTile.cpp b/src/add-ons/decorators/SATDecorator/StackAndTile.cpp index 56f268c337..f12531c000 100644 --- a/src/add-ons/decorators/SATDecorator/StackAndTile.cpp +++ b/src/add-ons/decorators/SATDecorator/StackAndTile.cpp @@ -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;