From 0fd274fa5759d921609d8087b80f14cc537667ad Mon Sep 17 00:00:00 2001 From: Clemens Zeidler Date: Fri, 29 Oct 2010 08:33:47 +0000 Subject: [PATCH] The new app-server double click detection has broke minimization in S&T. React only on single clicks now, fix #6759. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39182 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/decorators/SATDecorator/StackAndTile.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/add-ons/decorators/SATDecorator/StackAndTile.cpp b/src/add-ons/decorators/SATDecorator/StackAndTile.cpp index 9734f81991..bd50759154 100644 --- a/src/add-ons/decorators/SATDecorator/StackAndTile.cpp +++ b/src/add-ons/decorators/SATDecorator/StackAndTile.cpp @@ -130,6 +130,9 @@ StackAndTile::MouseDown(Window* window, BMessage* message, const BPoint& where) if (!satWindow || !satWindow->GetDecorator()) return; + // we are only interested in single clicks + if (message->FindInt32("clicks") == 2) + return; int32 modifiers = message->FindInt32("modifiers"); int32 buttons = message->FindInt32("buttons"); click_type clickArea = satWindow->GetDecorator()->MouseAction(message,