From 57665c6ef2e421c4af4132a5f5abf36287578ce4 Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Mon, 8 Sep 2008 08:33:49 +0000 Subject: [PATCH] Respect B_NOT_MINIMIZABLE in the default decorator. Maybe we should recheck all the flags in the window code though instead of relying fully on the decorator. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27369 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/DefaultDecorator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/servers/app/DefaultDecorator.cpp b/src/servers/app/DefaultDecorator.cpp index eca9c2b08d..028c184790 100644 --- a/src/servers/app/DefaultDecorator.cpp +++ b/src/servers/app/DefaultDecorator.cpp @@ -580,7 +580,7 @@ DefaultDecorator::Clicked(BPoint point, int32 buttons, int32 modifiers) if (buttons == B_SECONDARY_MOUSE_BUTTON) return DEC_MOVETOBACK; - if (fWasDoubleClick) + if (fWasDoubleClick && !(fFlags & B_NOT_MINIMIZABLE)) return DEC_MINIMIZE; return DEC_DRAG;