From dd1ebc6885218e0b4d787be12b9093ebc79bef04 Mon Sep 17 00:00:00 2001 From: Philippe Houdoin Date: Thu, 2 Dec 2010 22:01:41 +0000 Subject: [PATCH] In Humdinger-resize mode, don't fall back to drag action when the window is not resizable. Just do nothing. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39709 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/DefaultWindowBehaviour.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/servers/app/DefaultWindowBehaviour.cpp b/src/servers/app/DefaultWindowBehaviour.cpp index 478744bfd9..fc6e08801a 100644 --- a/src/servers/app/DefaultWindowBehaviour.cpp +++ b/src/servers/app/DefaultWindowBehaviour.cpp @@ -904,10 +904,9 @@ DefaultWindowBehaviour::MouseDown(BMessage* message, BPoint where, } else if ((buttons & B_TERTIARY_MOUSE_BUTTON) != 0) { // Middle-click anywhere on the window shall initiate // humdinger-resize mode. - if (windowModifier && hitRegion != Decorator::REGION_NONE) { - action = (flags & B_NOT_RESIZABLE) == 0 - ? ACTION_HUMDINGER_RESIZE : ACTION_DRAG; - } + if (windowModifier && hitRegion != Decorator::REGION_NONE + && (flags & B_NOT_RESIZABLE) == 0) + action = ACTION_HUMDINGER_RESIZE; } }